/*! For license information please see pixel.js.LICENSE.txt */ (()=>{var e,t,r={851:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function d(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,s,"next",e)}function s(e){d(i,n,o,a,s,"throw",e)}a(void 0)}))}}var p=r(273),h=r(374).getFieldData,v=r(389),g=r(203),y=g.EXPERIMENTAL_FEATURES,m=g.executeFeature,w=function(e){var t,r=v.getItem("synced_at"),n=Date.now();if(void 0!==e?!0===e:!0===(null===(t=window.vector)||void 0===t?void 0:t.forceIdentityWaterfall))return!0;if(!r)return!0;var o=parseInt(r,10);return!!isNaN(o)||n-o>2592e6},b=null,x=function(){var e=f(u().mark((function e(){var t,r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=2;break}return e.abrupt("return",b);case 2:return t=new p("https://api.vector.co"),e.prev=3,e.next=6,t.get("/pixel/ip-info");case 6:return r=e.sent,b=r,e.abrupt("return",r);case 11:return e.prev=11,e.t0=e.catch(3),e.t0 instanceof TypeError||console.error("Error fetching IP info:",e.t0),e.abrupt("return",{ipInfo:{},isCloudProvider:!1});case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}(),S=function(){var e=f(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return t=e.sent,e.abrupt("return",t.ipInfo||{});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=f(u().mark((function e(t){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return r=e.sent,e.abrupt("return",r.isCloudProvider||!1);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=f(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return t=e.sent,e.abrupt("return",{ipInfo:t.ipInfo||{},isCloudProvider:t.isCloudProvider||!1});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(e){try{var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length)return!!t.pop().split(";").shift()}catch(e){}return!1},_=function(e){try{var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length){var r=t.pop().split(";").shift();if(r)return r}}catch(e){}return v.getItem(e)},P=function(){try{if(window.crypto&&"function"==typeof window.crypto.randomUUID)return window.crypto.randomUUID()}catch(e){}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},C=function(e){var t=null;if(e?(I("vector_visitor_id")&&(t=_("vector_visitor_id")),t||(t=v.getItem("visitor_id"))):t=v.getItem("visitor_id"),!t){var r=function(){try{var e=localStorage.getItem("vector_visitor_id");if(e)return e}catch(e){}return null}();r&&(t=r,function(e){if(e)try{v.setItem("visitor_id",e),localStorage.removeItem("vector_visitor_id")}catch(e){}}(r))}return t},O=function(){var e=f(u().mark((function e(t,r){var n,o,i,a,s,c,l,d,f,h,g,y,m,b,x;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new p("https://api.vector.co"),e.next=3,n.get("/pixel/".concat(t,"/settings"));case 3:if(!(o=e.sent).tartarus){e.next=7;break}return console.error("Load failed, error in settings"),e.abrupt("return",null);case 7:if(i={formListeningState:o.pixelFormListening||"us_only",forceIdentityWaterfall:o.pixelForceIdentityWaterfall||!1,useCerebroWaterfall:o.pixelUseCerebroWaterfall||!1,pixelMode:"multi"===o.pixelMode?"multi":"original"},a=function(e,t,r){var n=new Date(Date.now()+864e5*r).toUTCString(),o=window.location.hostname.split("."),i=o.length>2?o.slice(-2).join("."):window.location.hostname;document.cookie="".concat(e,"=").concat(encodeURIComponent(t),"; expires=").concat(n,"; path=/; domain=.").concat(i,"; SameSite=None; Secure")},s=function(){if(o.pixelCookieFallback){var e=window.location.hostname.split("."),t=e.length>2?e.slice(-2).join("."):window.location.hostname;document.cookie="vector_visitor_id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.".concat(t,"; SameSite=None; Secure")}v.removeItem("visitor_id"),v.removeItem("visitor_uuid")},window.vector.formListeningState=i.formListeningState,window.vector.forceIdentityWaterfall=i.forceIdentityWaterfall,window.vector.useCerebroWaterfall=i.useCerebroWaterfall,window.vector.pixelMode=i.pixelMode,l="multi"===i.pixelMode,d=!0===i.forceIdentityWaterfall,f="true"===v.getItem("vector_force_rewaterfalled_".concat(t)),!d||f?(c=C(o.pixelCookieFallback))&&o.pixelCookieFallback&&!I("vector_visitor_id")&&a("vector_visitor_id",c,3650):v.setItem("vector_force_rewaterfalled_".concat(t),"true"),!c){e.next=27;break}if(!w(i.forceIdentityWaterfall)){e.next=24;break}s(),c=null,e.next=27;break;case 24:if(l){e.next=27;break}return window.vector.emit("visitor.id.found",{vectorVisitorId:c}),e.abrupt("return",{visitorId:c,settings:i,wasNewlyCreated:!1});case 27:if(!l){e.next=58;break}if(h=v.getItem("visitor_uuid"),g=h?"visitor_uuid (namespaced)":null,!h&&c&&(h=c,v.setItem("visitor_uuid",c),g="visitor_id (from earlier read)"),!h||"newly_generated"===g){e.next=34;break}return window.vector.emit("visitor.id.found",{vectorVisitorId:h}),e.abrupt("return",{visitorId:h,settings:i,wasNewlyCreated:!1});case 34:if(h||(h=P(),g="newly_generated"),"newly_generated"!==g){e.next=56;break}return m={visitorUuid:h,ipInfo:r,partnerId:window.vector.partnerId,url:window.location.href,title:document.title,referrer:document.referrer,userAgent:window.vector.userAgent||(null===(y=navigator)||void 0===y?void 0:y.userAgent)||"Unknown"},e.prev=37,e.next=40,n.post("/pixel/".concat(t,"/new-visitor"),m);case 40:return b=e.sent,o.pixelCookieFallback&&a("vector_visitor_id",b.visitor.uuid,3650),v.setItem("visitor_uuid",b.visitor.uuid),v.setItem("visitor_id",b.visitor.uuid),window.vector.emit("visitor.id.created",{vectorVisitorId:b.visitor.uuid}),e.abrupt("return",{visitorId:b.visitor.uuid,settings:i,wasNewlyCreated:!0});case 48:e.prev=48,e.t0=e.catch(37),console.error("Error creating visitor via new-visitor endpoint, falling back to legacy visitor flow",e.t0),s(),i.pixelMode="original",window.vector.pixelMode="original";case 54:e.next=58;break;case 56:return console.warn("[Vector] Unexpected state in multi mode: visitorUuid exists (".concat(h,") but uuidSource is ").concat(g)),e.abrupt("return",{visitorId:h,settings:i,wasNewlyCreated:!1});case 58:return e.next=60,n.post("/pixel/".concat(t,"/visitor"),{ipInfo:r,partnerId:window.vector.partnerId});case 60:return x=e.sent,o.pixelCookieFallback?(a("vector_visitor_id",x.uuid,3650),v.setItem("visitor_id",x.uuid)):v.setItem("visitor_id",x.uuid),window.vector.emit("visitor.id.created",{vectorVisitorId:x.uuid}),e.abrupt("return",{visitorId:x.uuid,settings:i,wasNewlyCreated:!0});case 64:case"end":return e.stop()}}),e,null,[[37,48]])})));return function(t,r){return e.apply(this,arguments)}}(),j=function(){var e=f(u().mark((function e(t,r,n,o){var i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new p("https://api.vector.co"),e.next=3,i.post("/pixel/".concat(t,"/visitor-activity"),{visitorId:r,url:window.location.href,title:document.title,referrer:document.referrer,ipInfo:n,userAgent:o});case 3:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}(),L=function(){var e=f(u().mark((function e(t,r,n,o){var i,a,s;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new Error("Pixel ID is required");case 2:if(r){e.next=4;break}throw new Error("Visitor ID is required");case 4:return i=new p("https://api.vector.co"),a=_("hubspotutk"),s=c(c({},o),{},{hubspotutk:a}),n&&(s.external_id=n),window.vector.partnerId&&(s.partner_id=window.vector.partnerId),e.next=11,i.put("/pixel/".concat(t,"/visitor/").concat(r),s);case 11:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}(),A=function(){var e=f(u().mark((function e(t,r,n){var o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new p("https://api.vector.co"),e.next=3,o.post("/pixel/".concat(t,"/visitor/").concat(r,"/cerebro"),{sha256:n,partnerId:window.vector.partnerId,hubspotutk:_("hubspotutk")});case 3:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),T=function(){var e=f(u().mark((function e(t,r,n){var o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new p("https://api.vector.co"),e.next=3,o.put("/pixel/".concat(t,"/visitor/").concat(r,"/consent"),n);case 3:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),R=function(e,t){var r=document.createElement("script");r.src="https://a.usbrowserspeed.com/cs?pid=b910e4cfe0d26c8f65884d90d71e4eb6628b4c8f3747dbae6c22ea24efcb8d5e&puid=".concat(e,"|").concat(t),r.type="text/javascript",document.head.appendChild(r)},D=function(){var e=f(u().mark((function e(t,r){var n=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w(n.length>2&&void 0!==n[2]&&n[2])){e.next=6;break}return v.setItem("synced_at",Date.now().toString()),R(t,r),e.next=6,B(t,r);case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),U="LiveIntent client (liQd_did_006l) is not available; ensure the cobundled distributor script loaded.",F="vector_li_client_missing_alert",N=function(e){try{var t=sessionStorage.getItem(F);if(!t)return!0;var r=JSON.parse(t);return r.p!==e||Date.now()-r.t>864e5}catch(e){return!0}},H=function(e){try{sessionStorage.setItem(F,JSON.stringify({p:e,t:Date.now()}))}catch(e){}},M=function(){var e=f(u().mark((function e(t,r){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=new p("https://api.vector.co"),e.next=4,n.post("/pixel/stats/liveintent-client-missing",{pixelId:t,pageUrl:"undefined"!=typeof window?window.location.href:void 0,errorMessage:r});case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t,r){return e.apply(this,arguments)}}(),$=function(){var e=f(u().mark((function e(t){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new p("https://api.vector.co"),e.next=3,r.post("/pixel/li",{domain:window.location.hostname.split(".").slice(-2).join("."),pixelId:t});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),q=function(){var e=f(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){var r=window.liQd_did_006l;r&&"function"==typeof r.resolve?r.resolve(function(){var r=f(u().mark((function r(n){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n?e(n):t(new Error("No result from LI"));case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),(function(e){t(new Error(e))}),{resolve:["sha2"]}):t(new Error(U))})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=f(u().mark((function e(t,r){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,$(t);case 3:return e.next=5,q();case 5:if((n=e.sent).sha2){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,A(t,r,n.sha2);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),e.t0 instanceof Error&&e.t0.message===U&&N(t)&&(H(t),M(t,e.t0.message));case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t,r){return e.apply(this,arguments)}}(),G=function(){var e=f(u().mark((function e(t,r,n,o){var i,a,s;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new p("https://api.vector.co"),a=_("hubspotutk"),e.prev=2,e.next=5,$(t);case 5:return e.next=7,q();case 7:return s=e.sent,e.next=10,i.post("/pixel/".concat(t,"/visitor/").concat(r,"/cerebro"),{externalId:n,sha256:s.sha2,additionalData:o,hubspotutk:a,partnerId:window.vector.partnerId});case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),console.error("Error in executeCerebro:",e.t0);case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(t,r,n,o){return e.apply(this,arguments)}}(),V=function(){var e=f(u().mark((function e(t,r){var n,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n={},new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"FORM"===e.nodeName&&o(e)}))}))})).observe(document.body,{childList:!0,subtree:!0}),o=function(e){e&&e instanceof HTMLFormElement?e.addEventListener("submit",function(){var o=f(u().mark((function o(i){var a;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,a={data_source:"form_listener"},e.querySelectorAll("input[type='email'],\n input[name*='email'], input[id*='email'],\n input[name*='first_name'], input[name*='firstname'], input[id*='first_name'], input[id*='firstname'],\n input[name*='last_name'], input[name*='lastname'], input[id*='last_name'], input[id*='lastname'],\n input[name*='firstName'], input[id*='firstName'], input[name*='lastName'], input[id*='lastName']").forEach((function(t,r){try{var n=(t.name||t.id||"".concat(e.id||"form","_field_").concat(r)).toLowerCase().replace(/([A-Z])/g,"_$1").replace(/(firstname)/g,"first_name").replace(/(lastname)/g,"last_name").replace(/[\s-]+/g,"_").replace(/__+/g,"_").replace(/^_|_$/g,"");if("email"===t.type||n.includes("email")||n.includes("first_name")||n.includes("last_name")){var o=h(t);a[n]=o.value}}catch(e){console.error("Error processing form field:",e)}})),n=a,window.vector.emit("form.submit",{formId:e.id||e.getAttribute("data-form-id")||"unnamed_form",formName:e.getAttribute("name")||"unnamed_form",vectorData:a,visitorId:t,timestamp:(new Date).toISOString(),url:window.location.href}),!window.vector.useCerebroWaterfall){o.next=11;break}return o.next=9,G(r,t,a.email?a.email:null,n);case 9:o.next=13;break;case 11:return o.next=13,L(r,t,a.email?a.email:null,n);case 13:o.next=19;break;case 15:o.prev=15,o.t0=o.catch(0),console.error("Error in form submission handler:",o.t0),window.vector.emit("form.error",{error:o.t0.message,formId:e.id||e.getAttribute("data-form-id")||"unnamed_form"});case 19:case"end":return o.stop()}}),o,null,[[0,15]])})));return function(e){return o.apply(this,arguments)}}()):console.error("Invalid form element provided to attachSingleFormListener")},document.querySelectorAll("form").forEach(o);case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Q=function(){return v.getItem("experimental_features")},W=function(e){v.setItem("experimental_features",e)},z=function(){var e=new URLSearchParams(window.location.search),t={};if("true"===e.get("v_x_f_all"))return Object.keys(y).reduce((function(e,t){return e[t]="true",e}),{});var r,n=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=i(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw o}}}}(e.entries());try{for(n.s();!(r=n.n()).done;){var a=o(r.value,2),s=a[0],l=a[1];s.startsWith("v_x_f_")&&(t[s.replace("v_x_f_","")]=l)}}catch(e){n.e(e)}finally{n.f()}if(0===Object.keys(t).length)return!1;var u=Q();return u?(W(JSON.stringify(c(c({},JSON.parse(u)),t))),c(c({},JSON.parse(u)),t)):(W(JSON.stringify(t)),t)},J=function(){var e=f(u().mark((function e(t,r){var n,i,a,s,c;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=z()){e.next=3;break}return e.abrupt("return");case 3:i=0,a=Object.entries(n);case 4:if(!(i{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(){"use strict";r=function(){return n};var e,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),s=new A(n||[]);return a(i,"_invoke",{value:C(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var h="suspendedStart",v="suspendedYield",g="executing",y="completed",m={};function w(){}function b(){}function x(){}var S={};d(S,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(T([])));E&&E!==o&&i.call(E,c)&&(S=E);var I=x.prototype=w.prototype=Object.create(S);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,r){function n(o,a,s,c){var l=p(e[o],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==t(d)&&i.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):r.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=h;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var l=p(t,r,n);if("normal"===l.type){if(o=n.done?y:v,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(r){if(r||""===r){var n=r[c];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function t(){for(;++o=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},n}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t2&&void 0!==l[2]?l[2]:null,i=l.length>3&&void 0!==l[3]?l[3]:{},a={method:l.length>1&&void 0!==l[1]?l[1]:"GET",headers:o({"Content-Type":"application/json","X-Request-URL":window.location.href},i)},n&&(a.body=JSON.stringify(n)),e.prev=5,e.next=8,fetch("".concat(this.baseURL).concat(t),a);case 8:if((s=e.sent).ok){e.next=14;break}return e.next=12,s.json();case 12:throw c=e.sent,new Error(c.message||"Something went wrong");case 14:return e.abrupt("return",s.json());case 17:throw e.prev=17,e.t0=e.catch(5),"Domain not allowed"!==e.t0.message&&console.error("Fetch error:",e.t0),e.t0;case 21:case"end":return e.stop()}}),e,this,[[5,17]])})),i=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(e,"GET",null,t)}},{key:"post",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(e,"POST",t,r)}},{key:"put",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(e,"PUT",t,r)}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(e,"DELETE",null,t)}}],t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,i}();e.exports=l},203:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){"use strict";o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),s=new A(n||[]);return a(i,"_invoke",{value:C(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",v="suspendedYield",g="executing",y="completed",m={};function w(){}function b(){}function x(){}var S={};d(S,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(T([])));E&&E!==r&&i.call(E,c)&&(S=E);var I=x.prototype=w.prototype=Object.create(S);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,a,s,c){var l=p(e[o],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=h;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var l=p(t,r,n);if("normal"===l.type){if(o=n.done?y:v,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function i(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var a={hspt:"hubspot_tracking",drft:"drift_tracking"},s=function(){var e,t=(e=o().mark((function e(t,n,i){var s,c,l,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("ENABLING EXPERIMENTAL VECTORFEATURES"),t){e.next=4;break}return console.warn("No features to enable"),e.abrupt("return");case 4:console.log("enabling feature",t),e.prev=5,e.t0=t,e.next=e.t0===a.hspt?9:e.t0===a.drft?14:19;break;case 9:return e.next=11,Promise.resolve().then(r.t.bind(r,851,23));case 11:return s=e.sent,c=s.attachHubspotTrackingListener,e.abrupt("return",c(n,i));case 14:return e.next=16,Promise.resolve().then(r.t.bind(r,851,23));case 16:return l=e.sent,u=l.attachDriftTrackingListener,e.abrupt("return",u(n,i));case 19:console.warn("Unknown experimental feature: ".concat(t));case 20:e.next=26;break;case 22:throw e.prev=22,e.t1=e.catch(5),console.error("Error executing experimental feature:",e.t1),e.t1;case 26:case"end":return e.stop()}}),e,null,[[5,22]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();e.exports={EXPERIMENTAL_FEATURES:a,executeFeature:s}},374:e=>{e.exports={getFieldData:function(e){var t,r=e.value;switch(e.type){case"checkbox":r=e.checked;break;case"radio":r=e.checked?e.value:null;break;case"select-multiple":r=Array.from(e.selectedOptions).map((function(e){return e.value}));break;case"select":case"textarea":case"number":case"email":case"tel":case"search":case"url":case"color":r=e.value}return{value:r,type:e.type||e.tagName.toLowerCase(),label:(null===(t=e.labels)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.textContent)||void 0===t?void 0:t.trim())||null}}}},389:e=>{function t(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r2&&void 0!==arguments[2])||arguments[2],o=e.getOneYearExpiry(),i="".concat(t,"=").concat(encodeURIComponent(r),"; path=/; expires=").concat(o);n&&(i+="; Secure"),document.cookie=i}},{key:"removeItem",value:function(e){document.cookie="".concat(e,"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT")}},{key:"clear",value:function(){document.cookie.split(";").forEach((function(e){var t=e.indexOf("="),r=t>-1?e.substring(0,t).trim():e.trim();r.startsWith(s)&&(document.cookie="".concat(r,"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"))}))}}],[{key:"getOneYearExpiry",value:function(){var e=new Date;return e.setFullYear(e.getFullYear()+1),e.toUTCString()}}])}(),d=new(function(){return i((function e(){n(this,e),t(this,"storage",window.localStorage),t(this,"namespace",""),function(){try{var e="".concat(s,"test");return localStorage.setItem(e,"test"),localStorage.removeItem(e),!0}catch(e){return!1}}()?this.storage=window.localStorage:function(){try{var e="".concat(s,"test");return sessionStorage.setItem(e,"test"),sessionStorage.removeItem(e),!0}catch(e){return!1}}()?this.storage=window.sessionStorage:c()?this.storage=new u:this.storage=new l}),[{key:"setItem",value:function(e,t){this.storage.setItem(this.prefixedKey(e),t)}},{key:"getItem",value:function(e){return this.storage.getItem(this.prefixedKey(e))}},{key:"removeItem",value:function(e){this.storage.removeItem(this.prefixedKey(e))}},{key:"isCookieStorageAvailable",value:function(){return c()}},{key:"setNamespace",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.namespace;return this.namespace=e?"".concat(e,"_"):"",t}},{key:"prefixedKey",value:function(e){return"".concat(s).concat(this.namespace).concat(e)}},{key:"clear",value:function(){this.storage.clear()}}])}());e.exports=d}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},window.liQd=window.liQd||[],window.liQd.push({globalVarName:"liQd_did_006l",distributorId:"did-006l",defaultEventDelay:1e3,identityResolutionConfig:{source:"did-006l"},identifiersToResolve:"_sharedid,dsq__s,trc_cookie_storage,gup_anonid,_li_uuid,hid,_parrable_id,tmguid,ajs_user_id,globalTI_SID,muuid,dsq__u,dtm_token,_shopify_y,_pubcid,IXWRAPPERLiveIntentIp,s_vi,_fbp,_aalyticsuid,s_ecid",contextSelectors:"",contextElementsLength:5e3,sync:!0,euns:!0}),function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==o.g?o.g:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r=function(e){try{return!!e()}catch(e){return!0}},n=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),i=n,a=Function.prototype,s=a.call,c=i&&a.bind.bind(s,s),l=i?c:function(e){return function(){return s.apply(e,arguments)}},u=function(e){return null==e},d=u,f=TypeError,p=function(e){if(d(e))throw new f("Can't call method on "+e);return e},h=p,v=Object,g=function(e){return v(h(e))},y=g,m=l({}.hasOwnProperty),w=Object.ownProp||function(e,t){return m(y(e),t)},b=l,x=b({}.toString),S=b("".slice),k=function(e){return S(x(e),8,-1)},E=k,I=Array.isArray||function(e){return"Array"===E(e)},_="object"==typeof document&&document.all,P=void 0===_&&void 0!==_?function(e){return"function"==typeof e||e===_}:function(e){return"function"==typeof e},C=r,O=P,j=/#|\.prototype\./,L=function(e,t){var r=T[A(e)];return r===D||r!==R&&(O(t)?C(t):!!t)},A=L.normalize=function(e){return String(e).replace(j,".").toLowerCase()},T=L.data={},R=L.NATIVE="N",D=L.POLYFILL="P",U=L,F={exports:{}},N=function(e){return e&&e.Math===Math&&e},H=N("object"==typeof globalThis&&globalThis)||N("object"==typeof window&&window)||N("object"==typeof self&&self)||N("object"==typeof e&&e)||N("object"==typeof e&&e)||function(){return this}()||Function("return this")(),M=H,$=Object.defineProperty,q=H,B="__core-js_shared__",G=F.exports=q[B]||function(e,t){try{$(M,e,{value:t,configurable:!0,writable:!0})}catch(r){M[e]=t}return t}(B,{});(G.versions||(G.versions=[])).push({version:"3.42.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"});var V=F.exports,Q=w,W=I,z=U,J=V,K=z.data,X=z.normalize,Y="USE_FUNCTION_CONSTRUCTOR",Z="AsyncIteratorPrototype",ee=function(e,t){if(W(e))for(var r=0;r0&&me[0]<4?1:+(me[0]+me[1])),!we&&qe&&(!(me=qe.match(/Edge\/(\d+)/))||me[1]>=74)&&(me=qe.match(/Chrome\/(\d+)/))&&(we=+me[1]);var We=we,ze=We,Je=r,Ke=H.String,Xe=!!Object.getOwnPropertySymbols&&!Je((function(){var e=Symbol("symbol detection");return!Ke(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ze&&ze<41})),Ye=Xe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ze=Ue,et=P,tt=Fe,rt=Object,nt=Ye?function(e){return"symbol"==typeof e}:function(e){var t=Ze("Symbol");return et(t)&&tt(t.prototype,rt(e))},ot=String,it=function(e){try{return ot(e)}catch(e){return"Object"}},at=P,st=it,ct=TypeError,lt=function(e){if(at(e))return e;throw new ct(st(e)+" is not a function")},ut=lt,dt=u,ft=function(e,t){var r=e[t];return dt(r)?void 0:ut(r)},pt=pe,ht=P,vt=je,gt=TypeError,yt=V,mt=function(e,t){return yt[e]||(yt[e]=t||{})},wt=l,bt=0,xt=Math.random(),St=wt(1..toString),kt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+St(++bt+xt,36)},Et=mt,It=w,_t=kt,Pt=Xe,Ct=Ye,Ot=H.Symbol,jt=Et("wks"),Lt=Ct?Ot.for||Ot:Ot&&Ot.withoutSetter||_t,At=function(e){return It(jt,e)||(jt[e]=Pt&&It(Ot,e)?Ot[e]:Lt("Symbol."+e)),jt[e]},Tt=pe,Rt=je,Dt=nt,Ut=ft,Ft=TypeError,Nt=At("toPrimitive"),Ht=nt,Mt=function(e){var t=function(e,t){if(!Rt(e)||Dt(e))return e;var r,n=Ut(e,Nt);if(n){if(void 0===t&&(t="default"),r=Tt(n,e,t),!Rt(r)||Dt(r))return r;throw new Ft("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&ht(r=e.toString)&&!vt(n=pt(r,e)))return n;if(ht(r=e.valueOf)&&!vt(n=pt(r,e)))return n;if("string"!==t&&ht(r=e.toString)&&!vt(n=pt(r,e)))return n;throw new gt("Can't convert object to primitive value")}(e,t)}(e,"string");return Ht(t)?t:t+""},$t=je,qt=H.document,Bt=$t(qt)&&$t(qt.createElement),Gt=function(e){return Bt?qt.createElement(e):{}},Vt=Gt,Qt=!ue&&!r((function(){return 7!==Object.defineProperty(Vt("div"),"a",{get:function(){return 7}}).a})),Wt=ue,zt=pe,Jt=he,Kt=be,Xt=Ce,Yt=Mt,Zt=w,er=Qt,tr=Object.getOwnPropertyDescriptor;le.f=Wt?tr:function(e,t){if(e=Xt(e),t=Yt(t),er)try{return tr(e,t)}catch(e){}if(Zt(e,t))return Kt(!zt(Jt.f,e,t),e[t])};var rr=lt,nr=n,or=ce(ce.bind),ir=function(e,t){return rr(e),void 0===t?e:nr?or(e,t):function(){return e.apply(t,arguments)}},ar={},sr=ue&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),cr=je,lr=String,ur=TypeError,dr=function(e){if(cr(e))return e;throw new ur(lr(e)+" is not an object")},fr=ue,pr=Qt,hr=sr,vr=dr,gr=Mt,yr=TypeError,mr=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,br="enumerable",xr="configurable",Sr="writable";ar.f=fr?hr?function(e,t,r){if(vr(e),t=gr(t),vr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Sr in r&&!r[Sr]){var n=wr(e,t);n&&n[Sr]&&(e[t]=r.value,r={configurable:xr in r?r[xr]:n[xr],enumerable:br in r?r[br]:n[br],writable:!1})}return mr(e,t,r)}:mr:function(e,t,r){if(vr(e),t=gr(t),vr(r),pr)try{return mr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new yr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var kr=ar,Er=be,Ir=ue?function(e,t,r){return kr.f(e,t,Er(1,r))}:function(e,t,r){return e[t]=r,e},_r=H,Pr=ie,Cr=ce,Or=P,jr=le.f,Lr=U,Ar=Le,Tr=ir,Rr=Ir,Dr=w,Ur=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return Pr(e,this,arguments)};return t.prototype=e.prototype,t},Fr=function(e,t){var r,n,o,i,a,s,c,l,u,d=e.target,f=e.global,p=e.stat,h=e.proto,v=f?_r:p?_r[d]:_r[d]&&_r[d].prototype,g=f?Ar:Ar[d]||Rr(Ar,d,{})[d],y=g.prototype;for(i in t)n=!(r=Lr(f?i:d+(p?".":"#")+i,e.forced))&&v&&Dr(v,i),s=g[i],n&&(c=e.dontCallGetSet?(u=jr(v,i))&&u.value:v[i]),a=n&&c?c:t[i],(r||h||typeof s!=typeof a)&&(l=e.bind&&n?Tr(a,_r):e.wrap&&n?Ur(a):h&&Or(a)?Cr(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Rr(l,"sham",!0),Rr(g,i,l),h&&(Dr(Ar,o=d+"Prototype")||Rr(Ar,o,{}),Rr(Ar[o],i,a),e.real&&y&&(r||!y[i])&&Rr(y,i,a)))},Nr={},Hr=Math.ceil,Mr=Math.floor,$r=Math.trunc||function(e){var t=+e;return(t>0?Mr:Hr)(t)},qr=$r,Br=function(e){var t=+e;return t!=t||0===t?0:qr(t)},Gr=Br,Vr=Math.max,Qr=Math.min,Wr=function(e,t){var r=Gr(e);return r<0?Vr(r+t,0):Qr(r,t)},zr=Br,Jr=Math.min,Kr=function(e){return function(e){var t=zr(e);return t>0?Jr(t,9007199254740991):0}(e.length)},Xr=Ce,Yr=Wr,Zr=Kr,en=function(e){return function(t,r,n){var o=Xr(t),i=Zr(o);if(0===i)return!e&&-1;var a,s=Yr(n,i);if(e&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},tn={includes:en(!0),indexOf:en(!1)},rn={},nn=w,on=Ce,an=tn.indexOf,sn=rn,cn=l([].push),ln=function(e,t){var r,n=on(e),o=0,i=[];for(r in n)!nn(sn,r)&&nn(n,r)&&cn(i,r);for(;t.length>o;)nn(n,r=t[o++])&&(~an(i,r)||cn(i,r));return i},un=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dn=ln,fn=un.concat("length","prototype");Nr.f=Object.getOwnPropertyNames||function(e){return dn(e,fn)};var pn={};pn.f=Object.getOwnPropertySymbols;var hn=Ue,vn=Nr,gn=pn,yn=dr,mn=l([].concat),wn=hn("Reflect","ownKeys")||function(e){var t=vn.f(yn(e)),r=gn.f;return r?mn(t,r(e)):t},bn=ue,xn=ar,Sn=be,kn=function(e,t,r){bn?xn.f(e,t,Sn(0,r)):e[t]=r},En=wn,In=Ce,_n=le,Pn=kn;Fr({target:"Object",stat:!0,sham:!ue},{getOwnPropertyDescriptors:function(e){for(var t,r,n=In(e),o=_n.f,i=En(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&Pn(a,t,r);return a}});var Cn=t(Le.Object.getOwnPropertyDescriptors),On=ue,jn=I,Ln=TypeError,An=Object.getOwnPropertyDescriptor,Tn=On&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(jn(e)&&!An(e,"length").writable)throw new Ln("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Rn=TypeError,Dn=function(e){if(e>9007199254740991)throw Rn("Maximum allowed index exceeded");return e},Un=g,Fn=Kr,Nn=Tn,Hn=Dn;Fr({target:"Array",proto:!0,arity:1,forced:r((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=Un(this),r=Fn(t),n=arguments.length;Hn(r+n);for(var o=0;oa;)Lo.f(e,r=o[a++],n[r]);return e};var Do,Uo=Ue("document","documentElement"),Fo=dr,No=Io,Ho=un,Mo=rn,$o=Uo,qo=Gt,Bo="prototype",Go="script",Vo=no("IE_PROTO"),Qo=function(){},Wo=function(e){return"<"+Go+">"+e+""},zo=function(e){e.write(Wo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jo=function(){try{Do=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Jo="undefined"!=typeof document?document.domain&&Do?zo(Do):(t=qo("iframe"),r="java"+Go+":",t.style.display="none",$o.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Wo("document.F=Object")),e.close(),e.F):zo(Do);for(var n=Ho.length;n--;)delete Jo[Bo][Ho[n]];return Jo()};Mo[Vo]=!0;var Ko,Xo,Yo,Zo=Object.create||function(e,t){var r;return null!==e?(Qo[Bo]=Fo(e),r=new Qo,Qo[Bo]=null,r[Vo]=e):r=Jo(),void 0===t?r:No.f(r,t)},ei=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ti=w,ri=P,ni=g,oi=ei,ii=no("IE_PROTO"),ai=Object,si=ai.prototype,ci=oi?ai.getPrototypeOf:function(e){var t=ni(e);if(ti(t,ii))return t[ii];var r=t.constructor;return ri(r)&&t instanceof r?r.prototype:t instanceof ai?si:null},li=Ir,ui=function(e,t,r,n){return n&&n.enumerable?e[t]=r:li(e,t,r),e},di=r,fi=P,pi=je,hi=Zo,vi=ci,gi=ui,yi=At("iterator"),mi=!1;[].keys&&("next"in(Yo=[].keys())?(Xo=vi(vi(Yo)))!==Object.prototype&&(Ko=Xo):mi=!0);var wi=!pi(Ko)||di((function(){var e={};return Ko[yi].call(e)!==e}));fi((Ko=wi?{}:hi(Ko))[yi])||gi(Ko,yi,(function(){return this}));var bi={IteratorPrototype:Ko,BUGGY_SAFARI_ITERATORS:mi},xi={};xi[At("toStringTag")]="z";var Si="[object z]"===String(xi),ki=Si,Ei=P,Ii=k,_i=At("toStringTag"),Pi=Object,Ci="Arguments"===Ii(function(){return arguments}()),Oi=ki?Ii:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Pi(e),_i))?r:Ci?Ii(t):"Object"===(n=Ii(t))&&Ei(t.callee)?"Arguments":n},ji=Oi,Li=Si?{}.toString:function(){return"[object "+ji(this)+"]"},Ai=Si,Ti=ar.f,Ri=Ir,Di=w,Ui=Li,Fi=At("toStringTag"),Ni=function(e,t,r,n){var o=r?e:e&&e.prototype;o&&(Di(o,Fi)||Ti(o,Fi,{configurable:!0,value:t}),n&&!Ai&&Ri(o,"toString",Ui))},Hi=bi.IteratorPrototype,Mi=Zo,$i=be,qi=Ni,Bi=Xn,Gi=function(){return this},Vi=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Mi(Hi,{next:$i(+!n,r)}),qi(e,o,!1,!0),Bi[o]=Gi,e},Qi=l,Wi=lt,zi=je,Ji=String,Ki=TypeError,Xi=je,Yi=p,Zi=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=function(e){try{return Qi(Wi(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Yi(r),function(e){if(function(e){return zi(e)||null===e}(e))return e;throw new Ki("Can't set "+Ji(e)+" as a prototype")}(n),Xi(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),ea=Fr,ta=pe,ra=Vi,na=ci,oa=Ni,ia=ui,aa=Xn,sa=Eo.PROPER,ca=bi.BUGGY_SAFARI_ITERATORS,la=At("iterator"),ua="keys",da="values",fa="entries",pa=function(){return this},ha=function(e,t,r,n,o,i,a){ra(r,t,n);var s,c,l,u=function(e){if(e===o&&v)return v;if(!ca&&e&&e in p)return p[e];switch(e){case ua:case da:case fa:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[la]||p["@@iterator"]||o&&p[o],v=!ca&&h||u(o),g="Array"===t&&p.entries||h;if(g&&(s=na(g.call(new e)))!==Object.prototype&&s.next&&(oa(s,d,!0,!0),aa[d]=pa),sa&&o===da&&h&&h.name!==da&&(f=!0,v=function(){return ta(h,this)}),o)if(c={values:u(da),keys:i?v:u(ua),entries:u(fa)},a)for(l in c)(ca||f||!(l in p))&&ia(p,l,c[l]);else ea({target:t,proto:!0,forced:ca||f},c);return a&&p[la]!==v&&ia(p,la,v,{name:o}),aa[t]=v,c},va=function(e,t){return{value:e,done:t}},ga=Ce,ya=Xn,ma=mo;ar.f;var wa=ha,ba=va,xa="Array Iterator",Sa=ma.set,ka=ma.getterFor(xa);wa(Array,"Array",(function(e,t){Sa(this,{type:xa,target:ga(e),index:0,kind:t})}),(function(){var e=ka(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ba(void 0,!0);switch(e.kind){case"keys":return ba(r,!1);case"values":return ba(t[r],!1)}return ba([r,t[r]],!1)}),"values"),ya.Arguments=ya.Array;var Ea=Fr,Ia=l,_a=Wr,Pa=RangeError,Ca=String.fromCharCode,Oa=String.fromCodePoint,ja=Ia([].join);Ea({target:"String",stat:!0,arity:1,forced:!!Oa&&1!==Oa.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],_a(t,1114111)!==t)throw new Pa(t+" is not a valid code point");r[o]=t<65536?Ca(t):Ca(55296+((t-=65536)>>10),t%1024+56320)}return ja(r,"")}});var La=H,Aa=ue,Ta=Object.getOwnPropertyDescriptor,Ra=function(e){if(!Aa)return La[e];var t=Ta(La,e);return t&&t.value},Da=r,Ua=At("iterator"),Fa=!Da((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b")||!t.size&&!0||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Ua]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})),Na=ar,Ha=function(e,t,r){return Na.f(e,t,r)},Ma=ui,$a=Fe,qa=TypeError,Ba=function(e,t){if($a(t,e))return e;throw new qa("Incorrect invocation")},Ga=Oi,Va=String,Qa=function(e){if("Symbol"===Ga(e))throw new TypeError("Cannot convert a Symbol value to a string");return Va(e)},Wa=Oi,za=ft,Ja=u,Ka=Xn,Xa=At("iterator"),Ya=function(e){if(!Ja(e))return za(e,Xa)||za(e,"@@iterator")||Ka[Wa(e)]},Za=pe,es=lt,ts=dr,rs=it,ns=Ya,os=TypeError,is=function(e,t){var r=arguments.length<2?ns(e):t;if(es(r))return ts(Za(r,e));throw new os(rs(e)+" is not iterable")},as=TypeError,ss=function(e,t){if(e0;)e[o]=e[--o];o!==i++&&(e[o]=n)}else for(var a=us(r/2),s=ds(ls(e,0,a),t),c=ds(ls(e,a),t),l=s.length,u=c.length,d=0,f=0;d0&&e&r;r>>=1)t++;return t},vc=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},gc=function(e){for(var t=(e=ic(e,dc," ")).length,r="",n=0;nt){r+="%",n++;continue}var i=pc(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=hc(i);if(0===a)o=Zs(i);else{if(1===a||a>4){r+="�",n++;continue}for(var s=[i],c=1;ct||"%"!==rc(e,n));){var l=pc(e,n+1);if(l!=l){n+=3;break}if(l>191||l<128)break;oc(s,l),n+=2,c++}if(s.length!==a){r+="�";continue}var u=vc(s);null===u?r+="�":o=ec(u)}}r+=o,n++}return r},yc=/[!'()~]|%20/g,mc={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},wc=function(e){return mc[e]},bc=function(e){return ic(Ys(e),yc,wc)},xc=ks((function(e,t){Bs(this,{type:qs,target:Gs(e).entries,index:0,kind:t})}),$s,(function(){var e=Vs(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Fs(void 0,!0);var n=t[r];switch(e.kind){case"keys":return Fs(n.key,!1);case"values":return Fs(n.value,!1)}return Fs([n.key,n.value],!1)}),!0),Sc=function(e){this.entries=[],this.url=null,void 0!==e&&(Ls(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===rc(e,0)?lc(e,1):e:As(e)))};Sc.prototype={type:$s,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,c=this.entries,l=Us(e);if(l)for(r=(t=Ds(e,l)).next;!(n=gs(r,t)).done;){if(i=(o=Ds(js(n.value))).next,(a=gs(i,o)).done||(s=gs(i,o)).done||!gs(i,o).done)throw new Xs("Expected sequence with length 2");oc(c,{key:As(a.value),value:As(s.value)})}else for(var u in e)Ps(e,u)&&oc(c,{key:u,value:As(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=cc(e,"&"),i=0;i0?arguments[0]:void 0));ms||(this.size=e.entries.length)},Ec=kc.prototype;if(function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:Ma(e,n,t[n],r)}(Ec,{append:function(e,t){var r=Gs(this);Ns(arguments.length,2),oc(r.entries,{key:As(e),value:As(t)}),ms||this.length++,r.updateURL()},delete:function(e){for(var t=Gs(this),r=Ns(arguments.length,1),n=t.entries,o=As(e),i=r<2?void 0:arguments[1],a=void 0===i?i:As(i),s=0;st.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Gs(this).entries,n=Cs(e,arguments.length>1?arguments[1]:void 0),o=0;o1?Pc(arguments[1]):{})}}),_s(Ws)){var Cc=function(e){return Is(this,Js),new Ws(e,arguments.length>1?Pc(arguments[1]):{})};Js.constructor=Cc,Cc.prototype=Js,fs({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Cc})}}var Oc={URLSearchParams:kc,getState:Gs},jc=l,Lc=Br,Ac=Qa,Tc=p,Rc=jc("".charAt),Dc=jc("".charCodeAt),Uc=jc("".slice),Fc=function(e){return function(t,r){var n,o,i=Ac(Tc(t)),a=Lc(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=Dc(i,a))<55296||n>56319||a+1===s||(o=Dc(i,a+1))<56320||o>57343?e?Rc(i,a):n:e?Uc(i,a,a+2):o-56320+(n-55296<<10)+65536}},Nc={codeAt:Fc(!1),charAt:Fc(!0)},Hc=Nc.charAt,Mc=Qa,$c=mo,qc=ha,Bc=va,Gc="String Iterator",Vc=$c.set,Qc=$c.getterFor(Gc);qc(String,"String",(function(e){Vc(this,{type:Gc,string:Mc(e),index:0})}),(function(){var e,t=Qc(this),r=t.string,n=t.index;return n>=r.length?Bc(void 0,!0):(e=Hc(r,n),t.index+=e.length,Bc(e,!1))}));var Wc=ue,zc=l,Jc=pe,Kc=r,Xc=Co,Yc=pn,Zc=he,el=g,tl=Ie,rl=Object.assign,nl=Object.defineProperty,ol=zc([].concat),il=!rl||Kc((function(){if(Wc&&1!==rl({b:1},rl(nl({},"a",{enumerable:!0,get:function(){nl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==rl({},e)[r]||Xc(rl({},t)).join("")!==n}))?function(e,t){for(var r=el(e),n=arguments.length,o=1,i=Yc.f,a=Zc.f;n>o;)for(var s,c=tl(arguments[o++]),l=i?ol(Xc(c),i(c)):Xc(c),u=l.length,d=0;u>d;)s=l[d++],Wc&&!Jc(a,c,s)||(r[s]=c[s]);return r}:rl,al=pe,sl=dr,cl=ft,ll=function(e,t,r){var n,o;sl(e);try{if(!(n=cl(e,"return"))){if("throw"===t)throw r;return r}n=al(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return sl(n),r},ul=dr,dl=ll,fl=Xn,pl=At("iterator"),hl=Array.prototype,vl=function(e){return void 0!==e&&(fl.Array===e||hl[pl]===e)},gl=P,yl=V,ml=l(Function.toString);gl(yl.inspectSource)||(yl.inspectSource=function(e){return ml(e)});var wl=yl.inspectSource,bl=l,xl=r,Sl=P,kl=Oi,El=wl,Il=function(){},_l=Ue("Reflect","construct"),Pl=/^\s*(?:class|function)\b/,Cl=bl(Pl.exec),Ol=!Pl.test(Il),jl=function(e){if(!Sl(e))return!1;try{return _l(Il,[],e),!0}catch(e){return!1}},Ll=function(e){if(!Sl(e))return!1;switch(kl(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ol||!!Cl(Pl,El(e))}catch(e){return!0}};Ll.sham=!0;var Al,Tl=!_l||xl((function(){var e;return jl(jl.call)||!jl(Object)||!jl((function(){e=!0}))||e}))?Ll:jl,Rl=ir,Dl=pe,Ul=g,Fl=function(e,t,r,n){try{return n?t(ul(r)[0],r[1]):t(r)}catch(t){dl(e,"throw",t)}},Nl=vl,Hl=Tl,Ml=Kr,$l=kn,ql=is,Bl=Ya,Gl=Array,Vl=l,Ql=2147483647,Wl=/[^\0-\u007E]/,zl=/[.\u3002\uFF0E\uFF61]/g,Jl="Overflow: input needs wider integers to process",Kl=RangeError,Xl=Vl(zl.exec),Yl=Math.floor,Zl=String.fromCharCode,eu=Vl("".charCodeAt),tu=Vl([].join),ru=Vl([].push),nu=Vl("".replace),ou=Vl("".split),iu=Vl("".toLowerCase),au=function(e){return e+22+75*(e<26)},su=function(e,t,r){var n=0;for(e=r?Yl(e/700):e>>1,e+=Yl(e/t);e>455;)e=Yl(e/35),n+=36;return Yl(n+36*e/(e+38))},cu=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r=55296&&o<=56319&&r=i&&nYl((Ql-a)/d))throw new Kl(Jl);for(a+=(u-i)*d,i=u,r=0;rQl)throw new Kl(Jl);if(n===i){for(var f=a,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f1?arguments[1]:void 0,i=void 0!==o;i&&(o=Rl(o,n>2?arguments[2]:void 0));var a,s,c,l,u,d,f=Bl(t),p=0;if(!f||this===Gl&&Nl(f))for(a=Ml(t),s=r?new this(a):Gl(a);a>p;p++)d=i?o(t[p],p):t[p],$l(s,p,d);else for(s=r?new this:[],u=(l=ql(t,f)).next;!(c=Dl(u,l)).done;p++)d=i?Fl(l,o,[c.value,p],!0):c.value,$l(s,p,d);return s.length=p,s},xu=cs,Su=Nc.codeAt,ku=Qa,Eu=Ni,Iu=ss,_u=Oc,Pu=mo,Cu=Pu.set,Ou=Pu.getterFor("URL"),ju=_u.URLSearchParams,Lu=_u.getState,Au=fu.URL,Tu=fu.TypeError,Ru=fu.parseInt,Du=Math.floor,Uu=Math.pow,Fu=hu("".charAt),Nu=hu(/./.exec),Hu=hu([].join),Mu=hu(1..toString),$u=hu([].pop),qu=hu([].push),Bu=hu("".replace),Gu=hu([].shift),Vu=hu("".split),Qu=hu("".slice),Wu=hu("".toLowerCase),zu=hu([].unshift),Ju="Invalid scheme",Ku="Invalid host",Xu="Invalid port",Yu=/[a-z]/i,Zu=/[\d+-.a-z]/i,ed=/\d/,td=/^0x/i,rd=/^[0-7]+$/,nd=/^\d+$/,od=/^[\da-f]+$/i,id=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ad=/[\0\t\n\r #/:<>?@[\\\]^|]/,sd=/^[\u0000-\u0020]+/,cd=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ld=/[\t\n\r]/g,ud=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)zu(t,e%256),e=Du(e/256);return Hu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=Mu(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},dd={},fd=wu({},dd,{" ":1,'"':1,"<":1,">":1,"`":1}),pd=wu({},fd,{"#":1,"?":1,"{":1,"}":1}),hd=wu({},pd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),vd=function(e,t){var r=Su(e,0);return r>32&&r<127&&!mu(t,e)?e:encodeURIComponent(e)},gd={ftp:21,file:null,http:80,https:443,ws:80,wss:443},yd=function(e,t){var r;return 2===e.length&&Nu(Yu,Fu(e,0))&&(":"===(r=Fu(e,1))||!t&&"|"===r)},md=function(e){var t;return e.length>1&&yd(Qu(e,0,2))&&(2===e.length||"/"===(t=Fu(e,2))||"\\"===t||"?"===t||"#"===t)},wd=function(e){return"."===e||"%2e"===Wu(e)},bd={},xd={},Sd={},kd={},Ed={},Id={},_d={},Pd={},Cd={},Od={},jd={},Ld={},Ad={},Td={},Rd={},Dd={},Ud={},Fd={},Nd={},Hd={},Md={},$d=function(e,t,r){var n,o,i,a=ku(e);if(t){if(o=this.parse(a))throw new Tu(o);this.searchParams=null}else{if(void 0!==r&&(n=new $d(r,!0)),o=this.parse(a,null,n))throw new Tu(o);(i=Lu(new ju)).bindURL(this),this.searchParams=i}};$d.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,c=this,l=t||bd,u=0,d="",f=!1,p=!1,h=!1;for(e=ku(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=Bu(e,sd,""),e=Bu(e,cd,"$1")),e=Bu(e,ld,""),n=bu(e);u<=n.length;){switch(o=n[u],l){case bd:if(!o||!Nu(Yu,o)){if(t)return Ju;l=Sd;continue}d+=Wu(o),l=xd;break;case xd:if(o&&(Nu(Zu,o)||"+"===o||"-"===o||"."===o))d+=Wu(o);else{if(":"!==o){if(t)return Ju;d="",l=Sd,u=0;continue}if(t&&(c.isSpecial()!==mu(gd,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&gd[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?l=Td:c.isSpecial()&&r&&r.scheme===c.scheme?l=kd:c.isSpecial()?l=Pd:"/"===n[u+1]?(l=Ed,u++):(c.cannotBeABaseURL=!0,qu(c.path,""),l=Nd)}break;case Sd:if(!r||r.cannotBeABaseURL&&"#"!==o)return Ju;if(r.cannotBeABaseURL&&"#"===o){c.scheme=r.scheme,c.path=xu(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Md;break}l="file"===r.scheme?Td:Id;continue;case kd:if("/"!==o||"/"!==n[u+1]){l=Id;continue}l=Cd,u++;break;case Ed:if("/"===o){l=Od;break}l=Fd;continue;case Id:if(c.scheme=r.scheme,o===Al)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=xu(r.path),c.query=r.query;else if("/"===o||"\\"===o&&c.isSpecial())l=_d;else if("?"===o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=xu(r.path),c.query="",l=Hd;else{if("#"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=xu(r.path),c.path.length--,l=Fd;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=xu(r.path),c.query=r.query,c.fragment="",l=Md}break;case _d:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=Fd;continue}l=Od}else l=Cd;break;case Pd:if(l=Cd,"/"!==o||"/"!==Fu(d,u+1))continue;u++;break;case Cd:if("/"!==o&&"\\"!==o){l=Od;continue}break;case Od:if("@"===o){f&&(d="%40"+d),f=!0,i=bu(d);for(var v=0;v65535)return Xu;c.port=c.isSpecial()&&m===gd[c.scheme]?null:m,d=""}if(t)return;l=Ud;continue}return Xu}d+=o;break;case Td:if(c.scheme="file","/"===o||"\\"===o)l=Rd;else{if(!r||"file"!==r.scheme){l=Fd;continue}switch(o){case Al:c.host=r.host,c.path=xu(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=xu(r.path),c.query="",l=Hd;break;case"#":c.host=r.host,c.path=xu(r.path),c.query=r.query,c.fragment="",l=Md;break;default:md(Hu(xu(n,u),""))||(c.host=r.host,c.path=xu(r.path),c.shortenPath()),l=Fd;continue}}break;case Rd:if("/"===o||"\\"===o){l=Dd;break}r&&"file"===r.scheme&&!md(Hu(xu(n,u),""))&&(yd(r.path[0],!0)?qu(c.path,r.path[0]):c.host=r.host),l=Fd;continue;case Dd:if(o===Al||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&yd(d))l=Fd;else if(""===d){if(c.host="",t)return;l=Ud}else{if(a=c.parseHost(d))return a;if("localhost"===c.host&&(c.host=""),t)return;d="",l=Ud}continue}d+=o;break;case Ud:if(c.isSpecial()){if(l=Fd,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==Al&&(l=Fd,"/"!==o))continue}else c.fragment="",l=Md;else c.query="",l=Hd;break;case Fd:if(o===Al||"/"===o||"\\"===o&&c.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(s=Wu(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||qu(c.path,"")):wd(d)?"/"===o||"\\"===o&&c.isSpecial()||qu(c.path,""):("file"===c.scheme&&!c.path.length&&yd(d)&&(c.host&&(c.host=""),d=Fu(d,0)+":"),qu(c.path,d)),d="","file"===c.scheme&&(o===Al||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)Gu(c.path);"?"===o?(c.query="",l=Hd):"#"===o&&(c.fragment="",l=Md)}else d+=vd(o,pd);break;case Nd:"?"===o?(c.query="",l=Hd):"#"===o?(c.fragment="",l=Md):o!==Al&&(c.path[0]+=vd(o,dd));break;case Hd:t||"#"!==o?o!==Al&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":vd(o,dd)):(c.fragment="",l=Md);break;case Md:o!==Al&&(c.fragment+=vd(o,fd))}u++}},parseHost:function(e){var t,r,n;if("["===Fu(e,0)){if("]"!==Fu(e,e.length-1))return Ku;if(t=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,f=function(){return Fu(e,d)};if(":"===f()){if(":"!==Fu(e,1))return;d+=2,u=++l}for(;f();){if(8===l)return;if(":"!==f()){for(t=r=0;r<4&&Nu(od,f());)t=16*t+Ru(f(),16),d++,r++;if("."===f()){if(0===r)return;if(d-=r,l>6)return;for(n=0;f();){if(o=null,n>0){if(!("."===f()&&n<4))return;d++}if(!Nu(ed,f()))return;for(;Nu(ed,f());){if(i=Ru(f(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;d++}c[l]=256*c[l]+o,2!=++n&&4!==n||l++}if(4!==n)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;c[l++]=t}else{if(null!==u)return;d++,u=++l}}if(null!==u)for(a=l-u,l=7;0!==l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!==l)return;return c}(Qu(e,1,-1)),!t)return Ku;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=ou(nu(iu(e),zl,"."),".");for(t=0;t4)return e;for(r=[],n=0;n1&&"0"===Fu(o,0)&&(i=Nu(td,o)?16:8,o=Qu(o,8===i?1:2)),""===o)a=0;else{if(!Nu(10===i?nd:8===i?rd:od,o))return e;a=Ru(o,i)}qu(r,a)}for(n=0;n=Uu(256,5-t))return null}else if(a>255)return null;for(s=$u(r),n=0;n1?arguments[1]:void 0,n=Cu(t,new $d(e,!1,r));uu||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Bd=qd.prototype,Gd=function(e,t){return{get:function(){return Ou(this)[e]()},set:t&&function(e){return Ou(this)[t](e)},configurable:!0,enumerable:!0}};if(uu&&(gu(Bd,"href",Gd("serialize","setHref")),gu(Bd,"origin",Gd("getOrigin")),gu(Bd,"protocol",Gd("getProtocol","setProtocol")),gu(Bd,"username",Gd("getUsername","setUsername")),gu(Bd,"password",Gd("getPassword","setPassword")),gu(Bd,"host",Gd("getHost","setHost")),gu(Bd,"hostname",Gd("getHostname","setHostname")),gu(Bd,"port",Gd("getPort","setPort")),gu(Bd,"pathname",Gd("getPathname","setPathname")),gu(Bd,"search",Gd("getSearch","setSearch")),gu(Bd,"searchParams",Gd("getSearchParams")),gu(Bd,"hash",Gd("getHash","setHash"))),vu(Bd,"toJSON",(function(){return Ou(this).serialize()}),{enumerable:!0}),vu(Bd,"toString",(function(){return Ou(this).serialize()}),{enumerable:!0}),Au){var Vd=Au.createObjectURL,Qd=Au.revokeObjectURL;Vd&&vu(qd,"createObjectURL",pu(Vd,Au)),Qd&&vu(qd,"revokeObjectURL",pu(Qd,Au))}Eu(qd,"URL"),lu({global:!0,constructor:!0,forced:!du,sham:!uu},{URL:qd});var Wd=Fr,zd=r,Jd=ss,Kd=Qa,Xd=Fa,Yd=Ue("URL"),Zd=Xd&&zd((function(){Yd.canParse()})),ef=zd((function(){return 1!==Yd.canParse.length}));Wd({target:"URL",stat:!0,forced:!Zd||ef},{canParse:function(e){var t=Jd(arguments.length,1),r=Kd(e),n=t<2||void 0===arguments[1]?void 0:Kd(arguments[1]);try{return!!new Yd(r,n)}catch(e){return!1}}});var tf=Fr,rf=ss,nf=Qa,of=Fa,af=Ue("URL");tf({target:"URL",stat:!0,forced:!of},{parse:function(e){var t=rf(arguments.length,1),r=nf(e),n=t<2||void 0===arguments[1]?void 0:nf(arguments[1]);try{return new af(r,n)}catch(e){return null}}});var sf=t(Le.URL),cf=it,lf=TypeError,uf=g,df=Kr,ff=Tn,pf=function(e,t){if(!delete e[t])throw new lf("Cannot delete property "+cf(t)+" of "+cf(e))},hf=Dn;Fr({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=uf(this),r=df(t),n=arguments.length;if(n){hf(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:pf(t,i)}for(var a=0;a1?arguments[1]:void 0)}});var xf=Vn("Array","includes"),Sf=je,kf=k,Ef=At("match"),If=TypeError,_f=At("match"),Pf=Fr,Cf=p,Of=Qa,jf=l("".indexOf);Pf({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[_f]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~jf(Of(Cf(this)),Of(function(e){if(function(e){var t;return Sf(e)&&(void 0!==(t=e[Ef])?!!t:"RegExp"===kf(e))}(e))throw new If("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var Lf=Vn("String","includes"),Af=Fe,Tf=xf,Rf=Lf,Df=Array.prototype,Uf=String.prototype,Ff=t((function(e){var t=e.includes;return e===Df||Af(Df,e)&&t===Df.includes?Tf:"string"==typeof e||e===Uf||Af(Uf,e)&&t===Uf.includes?Rf:t})),Nf=Fr,Hf=Date,Mf=l(Hf.prototype.getTime);Nf({target:"Date",stat:!0},{now:function(){return Mf(new Hf)}});var $f=t(Le.Date.now),qf=ue,Bf=r,Gf=l,Vf=ci,Qf=Co,Wf=Ce,zf=Gf(he.f),Jf=Gf([].push),Kf=qf&&Bf((function(){var e=Object.create(null);return e[2]=2,!zf(e,2)})),Xf=function(e){return function(t){for(var r,n=Wf(t),o=Qf(n),i=Kf&&null===Vf(n),a=o.length,s=0,c=[];a>s;)r=o[s++],qf&&!(i?r in n:zf(n,r))||Jf(c,e?[r,n[r]]:n[r]);return c}},Yf=[Xf(!0),Xf(!1)][0];Fr({target:"Object",stat:!0},{entries:function(e){return Yf(e)}});var Zf=t(Le.Object.entries),ep=w,tp=wn,rp=le,np=ar,op=je,ip=Ir,ap=Error,sp=l("".replace),cp=String(new ap("zxcasd").stack),lp=/\n\s*at [^:]*:[^\n]*/,up=lp.test(cp),dp=be,fp=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",dp(1,7)),7!==e.stack)})),pp=Ir,hp=fp,vp=Error.captureStackTrace,gp=ir,yp=pe,mp=dr,wp=it,bp=vl,xp=Kr,Sp=Fe,kp=is,Ep=Ya,Ip=ll,_p=TypeError,Pp=function(e,t){this.stopped=e,this.result=t},Cp=Pp.prototype,Op=function(e,t,r){var n,o,i,a,s,c,l,u=r&&r.that,d=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),v=gp(t,u),g=function(e){return n&&Ip(n,"normal",e),new Pp(!0,e)},y=function(e){return d?(mp(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(f)n=e.iterator;else if(p)n=e;else{if(!(o=Ep(e)))throw new _p(wp(e)+" is not iterable");if(bp(o)){for(i=0,a=xp(e);a>i;i++)if((s=y(e[i]))&&Sp(Cp,s))return s;return new Pp(!1)}n=kp(e,o)}for(c=f?e.next:n.next;!(l=yp(c,n)).done;){try{s=y(l.value)}catch(e){Ip(n,"throw",e)}if("object"==typeof s&&s&&Sp(Cp,s))return s}return new Pp(!1)},jp=Qa,Lp=Fr,Ap=Fe,Tp=ci,Rp=Zi,Dp=Zo,Up=Ir,Fp=be,Np=Op,Hp=At("toStringTag"),Mp=Error,$p=[].push,qp=function(e,t){var r,n=Ap(Bp,this);Rp?r=Rp(new Mp,n?Tp(this):Bp):(r=n?this:Dp(Bp),Up(r,Hp,"Error")),void 0!==t&&Up(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:jp(e)}(t)),function(e,t,r,n){hp&&(vp?vp(e,t):pp(e,"stack",function(e,t){if(up&&"string"==typeof e&&!ap.prepareStackTrace)for(;t--;)e=sp(e,lp,"");return e}(r,n)))}(r,qp,r.stack,1),arguments.length>2&&function(e,t){op(t)&&"cause"in t&&ip(e,"cause",t.cause)}(r,arguments[2]);var o=[];return Np(e,$p,{that:o}),Up(r,"errors",o),r};Rp?Rp(qp,Mp):function(e,t,r){for(var n=tp(t),o=np.f,i=rp.f,a=0;a1?dy(arguments,1):[],r=fy.f(this),n=hy((function(){return uy(py(e),void 0,t)}));return(n.error?r.reject:r.resolve)(n.value),r.promise}});var yy=Pv;Fr({target:"Promise",stat:!0},{withResolvers:function(){var e=yy.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var my=Fr,wy=fv,by=r,xy=Ue,Sy=P,ky=uh,Ey=Gg,Iy=wy&&wy.prototype;my({target:"Promise",proto:!0,real:!0,forced:!!wy&&by((function(){Iy.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=ky(this,xy("Promise")),r=Sy(e);return this.then(r?function(r){return Ey(t,e()).then((function(){return r}))}:e,r?function(r){return Ey(t,e()).then((function(){throw r}))}:e)}});var _y=Le.Promise,Py=H,Cy=Ni,Oy=Xn;for(var jy in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})Cy(Py[jy],jy),Oy[jy]=Oy.Array;var Ly=t(_y),Ay=Vn("Array","values"),Ty=Oi,Ry=w,Dy=Fe,Uy=Ay,Fy=Array.prototype,Ny={DOMTokenList:!0,NodeList:!0},Hy=t((function(e){var t=e.values;return e===Fy||Dy(Fy,e)&&t===Fy.values||Ry(Ny,Ty(e))?Uy:t}));Fr({target:"Object",stat:!0},{ownProp:w});var My=t(Le.Object.ownProp),$y=Vn("Array","keys"),qy=Oi,By=w,Gy=Fe,Vy=$y,Qy=Array.prototype,Wy={DOMTokenList:!0,NodeList:!0},zy=t((function(e){var t=e.keys;return e===Qy||Gy(Qy,e)&&t===Qy.keys||By(Wy,qy(e))?Vy:t})),Jy="\t\n\v\f\r                 \u2028\u2029\ufeff",Ky=p,Xy=Qa,Yy=Jy,Zy=l("".replace),em=RegExp("^["+Yy+"]+"),tm=RegExp("(^|[^"+Yy+"])["+Yy+"]+$"),rm=function(e){return function(t){var r=Xy(Ky(t));return 1&e&&(r=Zy(r,em,"")),2&e&&(r=Zy(r,tm,"$1")),r}},nm={start:rm(1),end:rm(2),trim:rm(3)},om=Eo.PROPER,im=r,am=Jy,sm=nm.trim;Fr({target:"String",proto:!0,forced:function(e){return im((function(){return!!am[e]()||"​…᠎"!=="​…᠎"[e]()||om&&am[e].name!==e}))}("trim")},{trim:function(){return sm(this)}});var cm=Vn("String","trim"),lm=Fe,um=cm,dm=String.prototype,fm=t((function(e){var t=e.trim;return"string"==typeof e||e===dm||lm(dm,e)&&t===dm.trim?um:t})),pm=g,hm=Co;Fr({target:"Object",stat:!0,forced:r((function(){hm(1)}))},{keys:function(e){return hm(pm(e))}});var vm=l,gm=w,ym=SyntaxError,mm=parseInt,wm=String.fromCharCode,bm=vm("".charAt),xm=vm("".slice),Sm=vm(/./.exec),km={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},Em=/^[\da-f]{4}$/i,Im=/^[\u0000-\u001F]$/,_m=Fr,Pm=ue,Cm=H,Om=Ue,jm=l,Lm=pe,Am=P,Tm=je,Rm=I,Dm=w,Um=Qa,Fm=Kr,Nm=kn,Hm=r,Mm=Xe,$m=Cm.JSON,qm=Cm.Number,Bm=Cm.SyntaxError,Gm=$m&&$m.parse,Vm=Om("Object","keys"),Qm=Object.getOwnPropertyDescriptor,Wm=jm("".charAt),zm=jm("".slice),Jm=jm(/./.exec),Km=jm([].push),Xm=/^\d$/,Ym=/^[1-9]$/,Zm=/^[\d-]$/,ew=/^[\t\n\r ]$/,tw=function(e,t,r,n){var o,i,a,s,c,l=e[t],u=n&&l===n.value,d=u&&"string"==typeof n.source?{source:n.source}:{};if(Tm(l)){var f=Rm(l),p=u?n.nodes:f?[]:{};if(f)for(o=p.length,a=Fm(l),s=0;s({pageUrl:gw(),referrer:yw()}),gw=()=>{const e=mw((()=>window.location.ancestorOrigins))||[],t=[];let r,n=window;for(;n!==top;)Kn(t).call(t,n),n=n.parent;Kn(t).call(t,n);for(let n=t.length-1;n>=0&&!r;n--)r=mw((()=>t[n].location.href)),0!==n&&(r||(r=mw((()=>t[n-1].document.referrer))),r||(r=e[n-1]));return null!=r?new sf(r):void 0},yw=()=>mw((()=>{var e;return null===(e=window.top)||void 0===e?void 0:e.document.referrer})),mw=e=>{try{return e()}catch(e){return}},ww=e=>{const t=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(parseInt("0x"+t,16))));return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")};for(var bw=[],xw=0;xw<64;)bw[xw]=0|4294967296*Math.sin(++xw%Math.PI);function Sw(e){var t,r,n,o=[t=1732584193,r=4023233417,~t,~r],i=[],a=unescape(encodeURI(e))+"€",s=a.length;for(e=--s/4+2|15,i[--e]=8*s;~s;)i[s>>2]|=a.charCodeAt(s)<<8*s--;for(xw=a=0;xw>4]+bw[a]+~~i[xw|15&[a,5*a+1,3*a+5,7*a][s]])<<(s=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*s+a++%4])|n>>>-s),t,r])t=0|s[1],r=s[2];for(a=4;a;)o[--a]+=s[a]}for(e="";a<32;)e+=(o[a>>3]>>4*(1^a++)&15).toString(16);return e}function kw(e){var t,r,n,o,i,a=[],s=[r=1732584193,n=4023233417,~r,~n,3285377520],c=[],l=unescape(encodeURI(e))+"€",u=l.length;for(c[e=--u/4+2|15]=8*u;~u;)c[u>>2]|=l.charCodeAt(u)<<8*~u--;for(t=u=0;t>2]+((l=r[0])<<5|l>>>27),l,n<<30|n>>>2,o,i])l=a[u-3]^a[u-8]^a[u-14]^a[u-16],n=r[1],o=r[2],i=r[3];for(u=5;u;)s[--u]+=r[u]}for(l="";u<40;)l+=(s[u>>3]>>4*(7-u++)&15).toString(16);return l}for(var Ew,Iw=18,_w=[],Pw=[];Iw>1;Iw--)for(Ew=Iw;Ew<320;)_w[Ew+=Iw]=1;function Cw(e,t){return 4294967296*Math.pow(e,1/t)|0}for(Ew=0;Ew<64;)_w[++Iw]||(Pw[Ew]=Cw(Iw,2),_w[Ew++]=Cw(Iw,3));function Ow(e,t){return e>>>t|e<<-t}function jw(e){var t=Pw.slice(Iw=Ew=0,8),r=[],n=unescape(encodeURI(e))+"€",o=n.length;for(r[e=--o/4+2|15]=8*o;~o;)r[o>>2]|=n.charCodeAt(o)<<8*~o--;for(o=[];Iw>>10)+o[Ew-7]+(Ow(n=o[Ew-15],7)^Ow(n,18)^n>>>3)+o[Ew-16])+Cw.pop()+(Ow(n=Cw[4],6)^Ow(n,11)^Ow(n,25))+(n&Cw[5]^~n&Cw[6])+_w[Ew++];for(Ew=8;Ew;)t[--Ew]+=Cw[Ew]}for(n="";Ew<64;)n+=(t[Ew>>3]>>4*(7-Ew++)&15).toString(16);return n}const Lw="[\\s'\"]",Aw=e=>`(?:${(e=>`(?:${e?`^${Lw}*`:"\\b"}([A-Z0-9._%+\\-]+@[A-Z0-9.\\-]+\\.[A-Z]{2,})${e?`${Lw}*$`:"\\b"})`)(e)}|${(e=>`(?:${e?`^${Lw}*`:"\\b"}((?:[A-Z0-9._\\-]|%25|%2B)+%40[A-Z0-9.\\-]+\\.[A-Z]{2,})${e?`${Lw}*$`:"\\b"})`)(e)})`,Tw=e=>`(?:${(e=>`(?:${e?`^${Lw}*`:"\\b"}([A-F0-9]{32,64})${e?`${Lw}*$`:"\\b"})`)(e)}|${Aw(e)})`,Rw=new RegExp(Aw(!1),"gi"),Dw=new RegExp(Tw(!0),"i"),Uw=new RegExp(Tw(!1),"gi"),Fw=new Map([[32,"md5"],[40,"sha1"],[64,"sha256"]]),Nw=(e,t,r,n)=>e.substring(0,t)+n+e.substring(r),Hw=e=>{try{const t=[];let r=e,n=Rw.exec(e),o=0;for(;n;){let i;i=n[1]?Mw(n[1]):Mw(decodeURIComponent(n[2])),Kn(t).call(t,i),r=Nw(r,o+n.index,o+n.index+n[0].length,i.md5),o+=i.md5.length-n[0].length,n=Rw.exec(e)}return{stringWithoutRawEmails:r,hashesFromOriginalString:t}}finally{Rw.lastIndex=0}},Mw=e=>{const t=e.toLowerCase();return{md5:Sw(t),sha1:kw(t),sha256:jw(t)}},$w=(e,t)=>"string"==typeof t?t.replace(Rw,"*********"):t,qw=e=>{if(null!=e[1]){const r=(t=e[1],Fw.get(t.length));if(null!=r)return{type:"hashed",value:{type:r,value:e[1]}}}else{if(null!=e[2])return{type:"raw",value:e[2]};if(null!=e[3])return{type:"raw",value:decodeURIComponent(e[3])}}var t},Bw=e=>{const t=Dw.exec(e);if(t)return qw(t)},Gw=new RegExp(Aw(!0),"iu");class Vw{constructor(e=[]){hw(this,"tuples",void 0),this.tuples=e}static empty(){return new Vw}add(e,t,r={}){const{stripEmpty:n=!0,prepend:o=!1,base64UrlEncode:i=!1}=r;if(""===e)return this;if(n&&""===t)return this;const a="string"==typeof t&&Gw.test(t)?Mw(t).md5:t,s=Gw.test(e)?Mw(e).md5:e,c=i?ww(a.toString()):a;var l,u;return o?(wf(l=this.tuples).call(l,[s,c]),this):(Kn(u=this.tuples).call(u,[s,c]),this)}addArray(e,t,r={}){return t.forEach((t=>this.add(e,t,r))),this}valuesFor(e){return this.tuples.filter((([t])=>t===e)).map((([,e])=>e))}addOptional(e,t,r={}){return null!=t?this.add(e,t,r):this}addParamsMap(e){for(const t in e){const r=e[t];Array.isArray(r)?r.forEach((e=>this.add(t,e))):this.add(t,r)}return this}copy(){return new Vw(this.tuples.slice())}build(){let e="";return this.tuples.forEach((([t,r])=>{const n=0===e.length?"?":"&";e=`${e}${n}${encodeURIComponent(t)}=${encodeURIComponent(r)}`})),e}}class Qw extends Error{constructor(e,t,r){super(t,r),hw(this,"cause",void 0),this.name=e,r&&r.cause&&(this.cause=r.cause)}}class Ww extends Qw{constructor(){super("BlockedByConsentError","Blocked by consent settings")}}const zw=e=>e instanceof Ww||e instanceof Error&&null!=e.cause&&zw(e.cause);class Jw{constructor(e){var t;hw(this,"callHandler",void 0),hw(this,"baseQuery",void 0),hw(this,"pixelBaseUrl",void 0),hw(this,"sampleRate",void 0),this.callHandler=e.callHandler;const r=vw();let n;null!=r.pageUrl&&(n=new sf(r.pageUrl),n.search=""),this.baseQuery=Vw.empty().add("tv",e.version).addOptional("refr",r.referrer).addOptional("pu",null===(t=n)||void 0===t?void 0:t.toString()),this.pixelBaseUrl=e.pixelBaseUrl,this.sampleRate=e.sampleRate}handleEvent(e){var t=this;return pw((function*(){if("error"===e.level&&!zw(e.error)&&t.isSampled()){const r=Kw(e.error);for(const n of r)try{yield t.sendError(n,e.context)}catch(e){}}}))()}isSampled(){return Math.random()<=this.sampleRate}sendError(e,t){const r=null!=t&&"appId"in t&&"string"==typeof t.appId?t.appId:void 0,n=null!=t&&"distributorId"in t&&"string"==typeof t.distributorId?t.distributorId:void 0,o=null!=t&&"wrapperName"in t&&"string"==typeof t.wrapperName?t.wrapperName:void 0,i=this.baseQuery.copy().addOptional("aid",r).addOptional("did",n).addOptional("wpn",o).add("ae",JSON.stringify(e),{base64UrlEncode:!0}).build(),a=`${this.pixelBaseUrl}/p${i}`;return this.callHandler.pixelGet(a)}}const Kw=e=>{const t=[];let r=e;for(;null!=r&&"object"==typeof r&&r instanceof Error;)Kn(t).call(t,{name:r.name.substring(0,120),message:r.message.substring(0,120),stackTrace:Xw(r).substring(0,1e3)}),r=r.cause;return t},Xw=e=>{let t=e;const r=[];for(;null!=t&&"object"==typeof t&&t instanceof Error;){const e=null!=(n=t.message)?n.substring(0,120):void 0;Kn(r).call(r,null!=e?e:"No message available"),t=t.cause}var n;return r.join("\ncaused by: ")},Yw=[1,2,3,4],Zw=[148],eb=(e,t)=>t.some((t=>((e,t)=>!0===(null==e?void 0:e[t]))(e,t))),tb=(e,t)=>t.every((t=>((e,t)=>!0===(null==e?void 0:e[t]))(e,t))),rb=e=>{let t=window,r=null;for(;!r;){try{e in t.frames&&(r=t)}catch(e){}if(t===window.top||!t.parent)break;t=t.parent}return r},nb=e=>(e=>!e.forcedPrivacyMode&&(void 0===e.gdpr||!e.gdpr.gdprApplies||!!e.gdpr.consentString&&tb(e.gdpr.tcfPurpose,[1,2,3,4])&&eb(e.gdpr.tcfVendor,Zw)))(e),ob=nb,ib=nb,ab=nb,sb=nb,cb=nb,lb=nb,ub=nb;class db{fromConsent(e,t){return ob(e)?new hb(t):(t.info("Using blocked call handler due to privacy mode"),new fb)}}class fb{ajaxGet(){return pw((function*(){throw new Ww}))()}pixelGet(){return pw((function*(){throw new Ww}))()}}const pb=null!=window.XMLHttpRequest?(e,t,r,n,o)=>(r,i)=>{const a=new XMLHttpRequest,s=$f();if(a.onreadystatechange=()=>{4===a.readyState&&(a.status>=200&&a.status<300||304===a.status?r({getBodyAsText:()=>a.responseText,expiresAt:n(a)}):i(new yb(`Error during XHR call: ${a.status}, url: ${e}`)))},a.ontimeout=()=>{const r=$f()-s;i(new yb(`Timeout after ${r} (${t}), url: ${e}`))},a.open("GET",e,!0),a.timeout=t,a.withCredentials=!0,null!=o)for(const[e,t]of Zf(o))null!=t&&a.setRequestHeader(e,t);a.send()}:null!=window.XDomainRequest?(e,t,r,n,o)=>(n,i)=>{const a=new window.XDomainRequest,s=$f();a.onprogress=()=>{},a.onload=()=>n({getBodyAsText:()=>a.responseText}),a.onerror=()=>i(new mb(`Error during XDR call: ${a.responseText}, url: ${e}`)),a.ontimeout=()=>{const r=$f()-s;i(new mb(`Timeout after ${r} (${t}), url: ${e}`))},a.open("GET",e),a.timeout=t,null!=o&&r.error(new bb),a.send()}:(e,t,r,n,o)=>(e,t)=>t(new gb("No supported request api found"));class hb{constructor(e){hw(this,"logger",void 0),this.logger=e}ajaxGet(e){var t=this;return pw((function*(){const{url:r,responseHandler:n,headers:o}=e,i=e.timeout||5e3,a=pb(r,i,t.logger,t.responseExpires.bind(t),o),s=yield new Ly(a).catch((e=>{throw new gb(`Failed sending request to url ${r}`,e)}));return{data:n.apply(s),expiresAt:s.expiresAt}}))()}pixelGet(e){const t=new Image,r=new Ly(((r,n)=>{t.onload=()=>r(),t.onerror=()=>n(new vb(`Failed loading pixel: ${e}`))}));return t.src=e,r}responseExpires(e){const t=e.getResponseHeader("expires");if(t)try{return new Date(t)}catch(e){return void this.logger.error(new wb(t))}}}class vb extends Qw{constructor(e){super("PixelError",e)}}class gb extends Qw{constructor(e,t){super("RequestError",e,{cause:t})}}class yb extends Qw{constructor(e){super("XhrRequestError",e)}}class mb extends Qw{constructor(e){super("XdrRequestError",e)}}class wb extends Qw{constructor(e){super("ExpiresHeaderParsingError","Failed parsing expires header"),hw(this,"expiresHeader",void 0),this.expiresHeader=e}}class bb extends Qw{constructor(){super("CustomHeadersUnsupportedError","Tried to send custom headers via XDR")}}const xb="1.1",Sb=e=>{let t;return"function"==typeof window.__gpp?(e=>{const t={};return new Ly(((r,n)=>{const o=e("addEventListener",((e,o)=>Eb({evt:e,success:o,resolve:r,reject:n,state:t})),void 0,xb);o&&Eb({evt:o,success:!0,resolve:r,reject:n,state:t})})).finally((()=>{t.listenerId&&e("removeEventListener",(()=>{}),t.listenerId,xb)}))})(window.__gpp):(t=rb("__gppLocator"))?(e=>{const t=`li_gpp_call_${Math.random()}`;let r;const n={};return new Ly(((o,i)=>{r=e=>{var r;const a=null==e||null===(r=e.data)||void 0===r?void 0:r.__gppReturn;(null==a?void 0:a.callId)===t&&Eb({evt:a.returnValue,success:a.success,resolve:o,reject:i,state:n})},window.addEventListener("message",r,!1);const a={__gppCall:{command:"addEventListener",version:xb,callId:t}};e.postMessage(a,"*")})).finally((()=>{if(window.removeEventListener("message",r,!1),n.listenerId){const r={__gppCall:{command:"removeEventListener",version:xb,callId:t,parameter:n.listenerId}};e.postMessage(r,"*")}}))})(t):(e.info("GPP API not found"),new Ly((e=>e(void 0))))},kb=(e,t)=>{"ready"===e.signalStatus&&t({consentString:e.gppString,applicableSections:e.applicableSections})},Eb=({evt:e,success:t,resolve:r,reject:n,state:o})=>{if("number"==typeof(null==e?void 0:e.listenerId)&&(o.listenerId=e.listenerId),null==t||t||n(Error("Failed registering GPP event listener")),e.pingData)if(e.pingData.gppVersion){const t=e.pingData,o=t.gppVersion.toString();o!==xb&&"1.0"!==o?n(Error(`unsupported GPP version ${t.gppVersion}`)):"ready"===t.signalStatus&&kb(e.pingData,r)}else try{kb(e.pingData,r)}catch(e){n(Error("Failed to handle GPP event",{cause:e}))}},Ib=()=>`li_tcf_call_${Math.random()}`,_b=e=>{let t;return"function"==typeof window.__tcfapi?Pb(window.__tcfapi):(t=rb("__tcfapiLocator"))?Cb(t):(e.info("TCF API not found"),Ly.resolve(void 0))},Pb=e=>{const t={};return new Ly(((r,n)=>{e("addEventListener",2,((e,o)=>Ob(e,o,r,n,t)))})).finally((()=>{t.listenerId&&e("removeEventListener",2,(()=>{}),t.listenerId)}))},Cb=e=>{const t=Ib();let r;const n={};return new Ly(((o,i)=>{r=e=>{var r;const a=null==e||null===(r=e.data)||void 0===r?void 0:r.__tcfapiReturn;null!=a&&a.success||i(Error("Failed to register TCF API event listener")),(null==a?void 0:a.callId)===t&&Ob(a.returnValue,a.success,o,i,n)},window.addEventListener("message",r,!1);const a={__tcfapiCall:{command:"addEventListener",version:2,callId:t}};e.postMessage(a,"*")})).finally((()=>{if(window.removeEventListener("message",r,!1),n.listenerId){const t={__tcfapiCall:{command:"removeEventListener",version:2,callId:Ib(),parameter:n.listenerId}};e.postMessage(t,"*")}}))},Ob=(e,t,r,n,o)=>{var i,a;"number"==typeof(null==e?void 0:e.listenerId)&&(o.listenerId=e.listenerId),t?"tcloaded"!==e.eventStatus&&"useractioncomplete"!==e.eventStatus||r({gdprApplies:null==e.gdprApplies?void 0:!!e.gdprApplies,consentString:e.tcString,tcfPurpose:null===(i=e.purpose)||void 0===i?void 0:i.consents,tcfVendor:null===(a=e.vendor)||void 0===a?void 0:a.consents}):n(Error("Failed to register TCF API event listener"))},jb=function(){var e=pw((function*(e){let t;return"function"==typeof window.__uspapi?Lb(window.__uspapi):(t=rb("__uspapiLocator"))?Ab(t):void e.info("USP API not found")}));return function(t){return e.apply(this,arguments)}}(),Lb=function(){var e=pw((function*(e){return new Ly(((t,r)=>{e("getUSPData",1,((e,n)=>Tb(e,n,t,r)))}))}));return function(t){return e.apply(this,arguments)}}(),Ab=function(){var e=pw((function*(e){const t=`li_uspapi_call_${Math.random()}`;let r;return new Ly(((n,o)=>{r=e=>{var r;const i=null==e||null===(r=e.data)||void 0===r?void 0:r.__uspapiReturn;(null==i?void 0:i.callId)===t&&Tb(i.returnValue,i.success,n,o)},window.addEventListener("message",r,!1);const i={__uspapiCall:{command:"getUSPData",version:1,callId:t}};e.postMessage(i,"*")})).finally((()=>{window.removeEventListener("message",r,!1)}))}));return function(t){return e.apply(this,arguments)}}(),Tb=(e,t,r,n)=>{t&&"string"==typeof e.uspString?r({consentString:e.uspString}):n(Error("Response from USP API frame was not successful"))},Rb=(e,t)=>{let r;return Ly.race([e,new Ly((e=>{r=setTimeout((()=>e(void 0)),t)}))]).finally((()=>clearTimeout(r)))};class Db{constructor(e){hw(this,"logger",void 0),hw(this,"cachedConsent",void 0),this.logger=e}loadConsent(){var e=this;return pw((function*(){return e.cachedConsent||(e.cachedConsent=e.loadConsentUncached()),yield e.cachedConsent}))()}loadConsentUncached(){var e=this;return pw((function*(){return{forcedPrivacyMode:!1,gdpr:yield Rb(_b(e.logger).catch((()=>{})),100),gpp:yield Rb(Sb(e.logger).catch((()=>{})),100),usPrivacy:yield Rb(jb(e.logger).catch((()=>{})),100)}}))()}}function Ub(e){for(var t=1;tr.indexOf(e)>=0&&null!==t[r])).map((e=>t[e]))}catch(e){return this.logger.error(new $b("Failed fetching from cookie jar",e)),[]}}localStorageIsEnabled(){return null==this.cachedLocalStorageIsEnabled&&(this.cachedLocalStorageIsEnabled=this.checkLocalStorage()),this.cachedLocalStorageIsEnabled}getDataFromLocalStorage(e){if(this.localStorageIsEnabled())try{var t;return null!==(t=window.localStorage.getItem(e))&&void 0!==t?t:void 0}catch(e){this.logger.error(new qb("Failed fetching from local storage",{cause:e}))}}setDataInLocalStorage(e,t){if(this.localStorageIsEnabled())try{window.localStorage.setItem(e,t)}catch(e){this.logger.error(new qb("Failed saving to local storage",{cause:e}))}}removeDataFromLocalStorage(e){if(this.localStorageIsEnabled())try{window.localStorage.removeItem(e)}catch(e){this.logger.error(new qb("Failed removing from local storage",{cause:e}))}}checkLocalStorage(){let e=!1;try{if(window&&window.localStorage){const t=Math.random().toString();window.localStorage.setItem(t,t),e=window.localStorage.getItem(t)===t,window.localStorage.removeItem(t)}}catch(e){this.logger.error(new qb("Failed checking local storage",{cause:e}))}return e}}class $b extends Qw{constructor(e,t){super("CookieJarError",e,{cause:t})}}class qb extends Qw{constructor(e,t){super("LocalStorageError",e,t)}}class Bb{constructor(e){hw(this,"size",void 0),hw(this,"buffer",[]),hw(this,"pointer",0),hw(this,"full",!1),this.size=e}push(e){var t;this.full?this.buffer[this.pointer]=e:(Kn(t=this.buffer).call(t,e),this.pointer===this.size-1&&(this.full=!0)),this.pointer=(this.pointer+1)%this.size}getLast(e){if(e>=this.size)throw new Gb("index out of bounds");const t=(this.pointer+this.size-e)%this.size;return this.buffer[t]}values(){if(!this.full)return this.buffer;const e=[];for(let t=this.pointer;t1?`(${n.join(` ${t} `)})`:null!==(r=n[0])&&void 0!==r?r:"never"}function ex(e,t){return{kind:"schema",type:"array",reference:ex,expects:"Array",async:!1,item:e,message:t,_run(e,t){const r=e.value;if(Array.isArray(r)){e.typed=!0,e.value=[];for(let a=0;ae.expects)),"|"),async:!1,options:e,message:t,_run(e,t){var r;let n,o,i;for(const r of this.options){const a=r._run({typed:!1,value:e.value},t);if(a.typed){if(!a.issues){n=a;break}o?Kn(o).call(o,a):o=[a]}else i?Kn(i).call(i,a):i=[a]}if(n)return n;if(o){if(1===o.length)return o[0];Xb(this,"type",e,t,{issues:dx(o)}),e.typed=!0}else{if(1===(null===(r=i)||void 0===r?void 0:r.length))return i[0];Xb(this,"type",e,t,{issues:dx(i)})}return e}}}function px(){return{kind:"schema",type:"unknown",reference:px,expects:"unknown",async:!1,_run:e=>(e.typed=!0,e)}}function hx(e,t,r){return{kind:"schema",type:"variant",reference:hx,expects:"Object",async:!1,key:e,options:t,message:r,_run(e,t){const r=e.value;if(r&&"object"==typeof r){let n,o=0,i=this.key,a=[];const s=(e,c)=>{for(const l of e.options){if("variant"===l.type)s(l,new Set(c).add(l.key));else{let e=!0,s=0;for(const n of c){if(l.entries[n]._run({typed:!1,value:r[n]},t).issues){e=!1,i!==n&&(o{if(null==e.pageUrl)return{isPathRemoved:!1,blockedQueryParams:[]};const o=new sf(e.pageUrl);if(!ib(r)){var i;const e=Array.from(zy(i=o.searchParams).call(i));return o.search="",o.hash="",e.length>0&&n.info("URL query parameters blocked by consent - all consent purposes are needed"),{url:o,isPathRemoved:!1,blockedQueryParams:e}}return bx(t)?{url:e.pageUrl,isPathRemoved:!1,blockedQueryParams:[]}:{url:o,isPathRemoved:mx(o,t),blockedQueryParams:wx(o,t,n)}},mx=(e,t)=>"no_path"===t.mode&&"/"!==e.pathname&&(e.pathname="",!0),wx=(e,t,r)=>{if(null==t.queryParametersFilter||""===t.queryParametersFilter)return[];try{const r=new RegExp(t.queryParametersFilter),n=new Set;return e.searchParams.forEach(((e,t)=>{r.test(t)&&n.add(t)})),n.forEach((t=>e.searchParams.delete(t))),Array.from(n)}catch(e){return r.error(new xx(e)),[]}},bx=e=>"full"===e.mode&&""===e.queryParametersFilter;class xx extends Qw{constructor(e){super("FailedToStripQueryParameterError","Failed to strip query parameters",{cause:e})}}const Sx=(e,t)=>{const r=window.document.querySelectorAll(e);let n="";return r.forEach((e=>{const r=Hw(e.outerHTML).stringWithoutRawEmails,o=n+r;if(kx(o)>t)return o;n=o})),n},kx=e=>Math.ceil(4*new Blob([e]).size/3),Ex=e=>{throw new Error(`Pattern not exhaustive. Encountered unknown value ${e}`)},Ix=e=>(e=>new Date((new Date).getTime()+864e5*e))(e),_x="lidids.",Px=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,Cx=(e,t,r)=>r.indexOf(e)===t,Ox=e=>"string"==typeof e&&Px.test(e);class jx extends Qw{constructor(e,t){super("LoadAndStoreDecisionsError",e,{cause:t})}}const Lx=e=>{const t=new Set,r=[];return e.forEach((e=>{t.has(e.md5)||(Kn(r).call(r,e),t.add(e.md5))})),r};class Ax extends Qw{constructor(e,t){super("ResolvePartnerCookiesError",e,{cause:t})}}const Tx="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Rx=Math.pow(2,48)-1,Dx=(()=>{const e="undefined"!=typeof window?window:null,t=e&&(e.crypto||e.msCrypto);return t?()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]/255}:()=>Math.random()})(),Ux=()=>{let e=Math.floor(32*Dx());return 32===e&&(e=31),Tx.charAt(e)};class Fx extends Qw{constructor(e){super("UlidError",e)}}const Nx="_lc2_fpi",Hx="_lc2_fpi_js",Mx="_li_duid";class $x extends Qw{constructor(e,t){super("GenerateAndStoreLiveConnectIdsError",e,{cause:t})}}class qx extends Qw{constructor(e){super("InvalidCollectedEmailError",e)}}const Bx=["email","emailhash","hash","hashedemail"],Gx=["items","itemids"];class Vx{constructor(e){hw(this,"value",void 0),this.value=e}}class Qx extends Qw{constructor(e,t){super("InvalidSourceEventPageUrlError",e,{cause:t})}}class Wx{constructor(e){hw(this,"apply",void 0),this.apply=e}map(e){return new Wx((t=>e(this.apply(t))))}defaultOnEmpty(e){return new Wx((t=>{const r=t.getBodyAsText();return""===r?e:this.apply({getBodyAsText:()=>r})}))}}!function(e){e.ignore=new e((()=>{})),e.constant=t=>new e((()=>t)),e.text=new e((e=>e.getBodyAsText())),e.parseJson=t=>new e((e=>{const r=e.getBodyAsText();let n;try{n=cw(r)}catch(e){throw new zx(e)}const o=gx(t,n);if(o.success)return o.output;throw new Jx(`Failed parsing response: ${JSON.stringify(n)}`)})),e.fail=new e((()=>{throw new Kx}))}(Wx||(Wx={}));class zx extends Qw{constructor(e){super("JsonParsingError","Failed parsing response to json",{cause:e})}}class Jx extends Qw{constructor(e){super("ResponseParsingError",`Failed parsing response: ${e}`)}}class Kx extends Qw{constructor(){super("UnexpectedResponseError","Unexpected response")}}const Xx=Wx.parseJson(lx(ux(),ux())).defaultOnEmpty({}),Yx=sx({bakers:cx(ex(ux()))}),Zx=Wx.parseJson(Yx);function eS(){return eS=pw((function*(e){const{pixelUrls:t,callHandler:r,timestamp:n,collectSettings:o,logger:i,pixelBaseUrl:a,identityPool:s}=e,{retries:c,timeout:l}=o,u={"X-LI-Provided-User-Agent":s.getUserAgent()};for(let o=0;oe.pixelGet(t.makePUrl(r)).catch((()=>{})),rS=({callHandler:e,response:t,timestamp:r,logger:n})=>{var o;const i=null!==(o=t.bakers)&&void 0!==o?o:[];return Ly.all(i.map((t=>(n.info(`Calling baker ${t}`),e.pixelGet(`${t}?dtstmp=${r.getTime()}`).catch((()=>{})))))).then((()=>{}))};class nS extends Qw{constructor(e,t){super("SendPixelError",e,{cause:t})}}class oS extends Qw{constructor(e){super("SendPixelRetriesExhaustedError",e)}}class iS extends Qw{constructor(e,t){super("CollectEmailsFromCssSelectorError",e,{cause:t})}}class aS extends Qw{constructor(e,t){super("CollectEmailsFromQueryParamsError",e,{cause:t})}}class sS extends Qw{constructor(e,t){super("CollectEmailsFromWindowPropertyError",e,{cause:t})}}class cS{constructor(e){hw(this,"props",void 0);const{logger:t,consent:r,storageHandler:n,callHandler:o,clientDetails:i,integration:a,urlCollectionSettings:s,partnerCookiesToResolve:c,contextElementCollectionSettings:l,collectSettings:u,autoCollectSettings:d,resolveSettings:f,pixelSyncSettings:p,hubConfig:h,emailExtractionSettings:v,eventTriggeredCollectionSettings:g,sharedData:y,domainDetails:m,identityPool:w,id5CollectionSettings:b}=e,{pageDetails:x}=y,S=(({storageHandler:e,partnerCookiesToResolve:t,consent:r,logger:n})=>{if(!cb(r))return{retrieved:[],extractedHashes:[]};try{const r=(e=>[...e].map((e=>fm(e).call(e))))(t);return((e,t)=>{const r=[],n=[];return e.forEach((e=>{const o=t.getCookie(e)||t.getDataFromLocalStorage(e);if(o){const{stringWithoutRawEmails:t,hashesFromOriginalString:i}=Hw(o);Kn(r).call(r,{name:e,value:t}),Kn(n).call(n,...i)}})),{retrieved:r,extractedHashes:Lx(n)}})(r,e)}catch(e){return n.error(new Ax("Error while enriching identifiers",e)),{retrieved:[],extractedHashes:[]}}})({storageHandler:n,partnerCookiesToResolve:c,consent:r,logger:t});w.addPartnerCookies(S);const k=yx({pageDetails:x,urlCollectionSettings:s,consent:r,logger:t}),E=(({contextElementCollectionSettings:e,consent:t})=>{if(!e.enabled)return{};if(!sb(t))return{};const{contextSelectors:r,maxLength:n}=e;return""===r||n<=0?{}:{collectedElements:Sx(r,n)}})({contextElementCollectionSettings:l,consent:r}),I=(({storageHandler:e,domainDetails:t,logger:r})=>{const n=t.cookieDomain,o=((e,t,r)=>{let n;try{n=e.getCookie(Nx)}catch(e){r.error(new $x("Error while loading old FPC from cookie",e))}if(null==n)try{n=e.getCookie(Hx)}catch(e){r.error(new $x("Error while loading old FPC from JS-only cookie",e))}if(null==n)try{n=e.getDataFromLocalStorage(Mx)}catch(e){r.error(new $x("Error while loading old FPC from local storage",e))}return null!=n?n:(e=>`${((e,t=12)=>kw(e.replace(/^\./,"")).substring(0,t))(e)}--${((e,t)=>{if(e>Rx)throw new Fx("cannot encode time greater than "+Rx);let r,n="";for(;t>0;t--)r=e%32,n=Tx.charAt(r)+n,e=(e-r)/32;return n})($f(),10)+(e=>{let t="";for(;e>0;e--)t=Ux()+t;return t})(16)}`.toLocaleLowerCase())(t)})(e,n,r);if(((e,t,r,n)=>{let o=!1;try{e.getCookie(Nx)!==t&&e.setCookie(Nx,t,{domain:r,expires:Ix(730)}),o=!0}catch(e){n.error(new $x("Couldn't store FPC in cookie",e))}try{e.setCookie(Hx,t,{domain:r}),o=!0}catch(e){n.error(new $x("Couldn't store FPC in JS-only cookie",e))}try{e.setDataInLocalStorage(Mx,t),o=!0}catch(e){n.error(new $x("Couldn't store FPC in local storage",e))}return o})(e,o,n,r))return o})({domainDetails:m,storageHandler:n,logger:t}),_=(({pageDetails:e,domainDetails:t,storageHandler:r,logger:n})=>{var o;const i=((null===(o=e.pageUrl)||void 0===o?void 0:o.searchParams.getAll("li_did"))||[]).map((e=>fm(e).call(e))).filter((e=>e.length>0&&Ox(e))).filter(Cx);let a;try{a=r.findSimilarCookies(_x)}catch(e){n.error(new jx("Error while searching for decisions in cookies",e)),a=[]}const s=a.map((e=>fm(e).call(e))).filter((e=>e.length>0&&Ox(e)));return i.forEach((e=>{try{r.setCookie(`${_x}${e}`,e,{expires:Ix(30),sameSite:"lax",domain:t.cookieDomain})}catch(e){n.error(new jx("Error while storing decision in cookie",e))}})),{decisionIds:i.concat(s).filter(Cx)}})({pageDetails:x,domainDetails:m,storageHandler:n,logger:t});let P=[];null!=x.pageUrl&&(P=(({pageUrl:e,queryParamRegexes:t,logger:r})=>{const n=[];if(0===t.length)return n;try{const r=e.searchParams,o=new RegExp(t.join("|"),"i");r.forEach(((e,t)=>{if(o.test(t)){const t=Bw(e);t&&Kn(n).call(n,t)}}))}catch(e){r.error(new aS("Failed to collect emails from query params",e))}return n})({pageUrl:x.pageUrl,queryParamRegexes:v.queryParameterRegexes,logger:t})),this.props={logger:t,hubConfig:h,callHandler:o,storageHandler:n,consent:r,pageDetails:x,domainDetails:m,liveConnectFpc:I,decisions:_,collectedUrl:k,contextElements:E,clientDetails:i,integration:a,urlCollectionSettings:s,collectSettings:u,autoCollectSettings:d,resolveSettings:f,pixelSyncSettings:p,emailExtractionSettings:v,emailsFromQueryParams:P,eventTriggeredCollectionSettings:g,identityPool:w,id5CollectionSettings:b,pageViewId:y.pageViewId}}resolve(e){var t=this;return pw((function*(){var r;const{requestedAttributes:n,additionalResolveParameters:o,onSuccess:i,onFailure:a}=e,{logger:s,consent:c,callHandler:l,liveConnectFpc:u,pageDetails:d,domainDetails:f,resolveSettings:p,integration:h,hubConfig:v,storageHandler:g,identityPool:y}=t.props;try{const e=yield(e=>{const{callHandler:t,resolveSettings:r,identityPool:n,consent:o}=e;if(!lb(o))return Ly.reject(new Ww);const i=(e=>{var t,r,n,o,i;const{liveConnectFpc:a,pageDetails:s,domainDetails:c,consent:l,integration:u,requestedAttributes:d,identityPool:f}=e,p=Vw.empty();let h;null!=(null===(t=l.gdpr)||void 0===t?void 0:t.gdprApplies)&&(h=l.gdpr.gdprApplies?"1":"0"),p.addOptional("duid",a);let v="any";switch(u.type){case"application":u.publisherId&&(v=u.publisherId);break;case"distributor":p.add("did",u.distributorId);break;case"custom":u.publisherId&&(v=u.publisherId),p.addOptional("did",u.distributorId);break;default:Ex(u)}return p.addOptional("cd",c.cookieDomain).addOptional("pu",s.pageUrl?(e=>{const t=new sf(e.toString());return t.pathname="",t.search="",t})(s.pageUrl).toString():void 0).addOptional("gdpr",h).addOptional("gdpr_consent",null===(r=l.gdpr)||void 0===r?void 0:r.consentString).addOptional("us_privacy",null===(n=l.usPrivacy)||void 0===n?void 0:n.consentString).addOptional("gpp_s",null===(o=l.gpp)||void 0===o?void 0:o.consentString).addOptional("gpp_as",null===(i=l.gpp)||void 0===i||null===(i=i.applicableSections)||void 0===i?void 0:i.join(",")),((e,t)=>{t.forEach((t=>{switch(t.type){case"md5":e.addOptional("m",t.value);break;case"sha1":e.addOptional("sh1",t.value);break;case"sha256":e.addOptional("sh2",t.value)}}))})(p,f.getProvidedEmailHashes()),d.forEach((e=>{p.add("resolve",e)})),f.getRetrievedIdentifiers().forEach((e=>{p.add(e.name,e.value)})),p.addOptional("pip",e.identityPool.getIpv4(),{base64UrlEncode:!0}).addOptional("pip6",e.identityPool.getIpv6(),{base64UrlEncode:!0}),e.additionalResolveParameters&&p.addParamsMap(e.additionalResolveParameters),{base:`${e.idexEndpointUrl}/${encodeURIComponent(e.resolveSettings.identityPartner)}/${encodeURIComponent(v)}`,query:p}})(e);return(e=>{const{callHandler:t,resolutionUrl:r,resolveSettings:n}=e,o=`${r.base}${r.query.build()}`;return t.ajaxGet({url:o,responseHandler:Xx,timeout:n.timeout})})({callHandler:t,resolutionUrl:i,resolveSettings:r,identityPool:n})})({consent:c,liveConnectFpc:u,pageDetails:d,domainDetails:f,callHandler:l,resolveSettings:p,integration:h,requestedAttributes:n,additionalResolveParameters:o,idexEndpointUrl:v.idexEndpointUrl,identityPool:y});for(const t of i)try{switch(t.type){case"write_to_local_storage":g.setDataInLocalStorage(t.targetKey,JSON.stringify(e.data));break;case"write_to_cookie":g.setCookie(t.targetKey,JSON.stringify(e.data),{expires:null!==(r=e.expiresAt)&&void 0!==r?r:Ix(730),sameSite:t.sameSite,domain:t.domain});break;case"callback":t.callback(e.data);break;default:Ex(t)}}catch(e){s.error(new lS("Failed to handle onResolveSuccess action",e))}}catch(e){if(s.error(new lS("Failed to resolve identity",e)),a)try{a(e)}catch(e){s.error(new lS("Failed to call onFailure callback",e))}}}))()}collect(e){var t=this;return pw((function*(){const{callHandler:r,pageDetails:n,collectedUrl:o,urlCollectionSettings:i,contextElements:a,integration:s,clientDetails:c,collectSettings:l,liveConnectFpc:u,decisions:d,consent:f,domainDetails:p,logger:h,hubConfig:v,identityPool:g,pageViewId:y}=t.props;try{const t=new Date,m=(({pageDetails:e,sourceEvent:t,logger:r})=>{if("pageUrl"in t&&"string"==typeof t.pageUrl)try{return{pageUrl:new sf(t.pageUrl),referrer:e.referrer}}catch(e){r.error(new Qx("Cannot create pageUrl with invalid source",e))}})({pageDetails:n,sourceEvent:e,logger:h});let w=o,b=n;null!=m&&(w=yx({pageDetails:m,urlCollectionSettings:i,consent:f,logger:h}),b=m);const x=((e,t)=>{const r=[];for(const n in e)if(Ff(Bx).call(Bx,n.toLowerCase())&&0===r.length){const o=e[n];if("string"==typeof o){const e=Bw(o);switch(null==e?void 0:e.type){case"raw":{const t=Mw(e.value);Kn(r).call(r,{type:"md5",value:t.md5},{type:"sha1",value:t.sha1},{type:"sha256",value:t.sha256});break}case"hashed":Kn(r).call(r,e.value);break;case void 0:t.error(new qx(`Invalid email format, key: ${n}`))}}else t.error(new qx(`Input with ${n} is not a string: ${typeof o}`))}const n=t=>{const r=e[t];if("string"==typeof r)return r};return{hashedEmails:r,ipv4:n("ipv4"),ipv6:n("ipv6"),userAgent:n("userAgent")}})(e,h);g.addSourceEventEmails(x),g.addIpv4(x),g.addIpv6(x),g.addUserAgent(x);const S=(({sourceEvent:e})=>{const t=dw({},e);for(const r in e)if(Ff(Gx).call(Gx,r.toLowerCase())){const n=e[r];Array.isArray(n)&&n.length>10&&(t[r]=n.slice(0,10))}return new Vx(t)})({sourceEvent:e}),k=(e=>{var t,r,n,o,i;const a=Vw.empty().add("dtstmp",e.timestamp.getTime());switch(e.integration.type){case"application":a.addOptional("aid",e.integration.appId);break;case"distributor":a.add("did",e.integration.distributorId);break;case"custom":a.addOptional("did",e.integration.distributorId);break;default:Ex(e.integration)}let s;a.add("se",JSON.stringify(e.limitedSourceEvent.value,$w),{base64UrlEncode:!0}).addOptional("duid",e.liveConnectFpc).add("tv",e.hubVersion).addOptional("pu",e.collectedUrl.url?e.collectedUrl.url.toString():void 0).addOptional("pu_rp",e.collectedUrl.isPathRemoved?"1":void 0).addOptional("pu_rqp",e.collectedUrl.blockedQueryParams.length>0?e.collectedUrl.blockedQueryParams.join(","):void 0),e.identityPool.getRetrievedIdentifiers().forEach((e=>{a.add(`ext_${e.name}`,e.value)})),e.identityPool.getExtractedHashes().forEach((e=>{a.add("scre",`${e.md5},${e.sha1},${e.sha256}`)})),null!=(null===(t=e.consent.gdpr)||void 0===t?void 0:t.gdprApplies)&&(s=e.consent.gdpr.gdprApplies?"1":"0");const c=ab(e.consent)?e.pageDetails.referrer:void 0,l=sb(e.consent)?e.identityPool.getProvidedEmailHashes().map((e=>e.value)).join(","):void 0;a.add("li_did",e.decisions.decisionIds.join(",")).addOptional("e",l).addOptional("us_privacy",null===(r=e.consent.usPrivacy)||void 0===r?void 0:r.consentString).add("wpn",e.clientDetails.name).add("wpv",e.clientDetails.version).addOptional("co",e.clientDetails.collaborator).addOptional("gdpr",s).addOptional("gdpr_consent",null===(n=e.consent.gdpr)||void 0===n?void 0:n.consentString).addOptional("refr",c).addOptional("gpp_s",null===(o=e.consent.gpp)||void 0===o?void 0:o.consentString).addOptional("gpp_as",null===(i=e.consent.gpp)||void 0===i?void 0:i.applicableSections.join(",")).addOptional("cd",e.domainDetails.cookieDomain).addOptional("c",e.contextElements.collectedElements,{base64UrlEncode:!0}).add("pv",e.pageViewId).addOptional("pip",e.identityPool.getIpv4(),{base64UrlEncode:!0}).addOptional("pip6",e.identityPool.getIpv6(),{base64UrlEncode:!0});const u=a.build();return{makeJUrl:e=>`${e}/j${u}`,makePUrl:e=>`${e}/p${u}`}})({integration:s,timestamp:t,limitedSourceEvent:S,contextElements:a,clientDetails:c,liveConnectFpc:u,decisions:d,domainDetails:p,consent:f,collectedUrl:w,pageDetails:b,hubVersion:v.hubVersion,identityPool:g,pageViewId:y});yield function(e){return eS.apply(this,arguments)}({pixelBaseUrl:v.pixelBaseUrl,pixelUrls:k,callHandler:r,collectSettings:l,timestamp:t,logger:h,identityPool:g})}catch(e){h.error(new uS(e))}}))()}tryCollectToSideChannel(){var e=this;return pw((function*(){const{logger:t,consent:r,emailExtractionSettings:n,emailsFromQueryParams:o,liveConnectFpc:i,pageDetails:a,integration:s}=e.props,c=e.props.identityPool.getId5Data();try{const l=sb(r),u=l?(({cssSelectors:e,logger:t})=>{const r=[];if(0===e.length)return r;try{const t=e.join(", ");document.querySelectorAll(t).forEach((e=>{if(e instanceof HTMLInputElement){const t=Bw(e.value);t&&Kn(r).call(r,t)}else{const t=(e=>{const t=[];try{let r=Uw.exec(e);for(;null!=r;){const n=qw(r);n&&Kn(t).call(t,n),r=Uw.exec(e)}return t}finally{Uw.lastIndex=0}})(e.outerHTML);Kn(r).call(r,...t)}}))}catch(r){t.error(new iS(`Failed to collect emails from css selectors ${e}`,r))}return r})({cssSelectors:n.emailCssSelectors,logger:t}):[],d=l?(({logger:e,propertyPaths:t})=>{const r=[];return t.forEach((t=>{try{const e=t.split(".");let n=window;for(const t of e)n=n[t];if("string"==typeof n){const e=Bw(n);e&&Kn(r).call(r,e)}}catch(r){e.error(new sS(`Failed to collect emails from window property ${t}`,r))}})),r})({propertyPaths:n.windowPropertyPaths,logger:t}):[],f=l?o:[];if(0===u.length&&0===d.length&&0===f.length&&null==c)return void t.debug("No data to collect to side channel, skipping");let p;switch(s.type){case"application":p=s.appId;break;case"distributor":case"custom":p=s.distributorId;break;default:Ex(s)}const h={fpc:i,page_url:a.pageUrl,customer_id:p,window_properties:d,css_selectors:u,query_parameters:f,id5_data:c,timestamp:(new Date).toISOString()},v=ww(JSON.stringify(h)),g=`${e.props.hubConfig.sideChannelCollectorUrl}?${v}`;t.info("Sending data to side channel",{eventToSend:h}),yield e.props.callHandler.pixelGet(g)}catch(e){t.error(new dS(e))}}))()}runStartupTasks(e,t){var r=this;return pw((function*(){e.scheduleAfterDelay(0,{type:"sync_container",consent:r.props.consent,domainDetails:r.props.domainDetails,liveConnectFpc:r.props.liveConnectFpc,pixelSyncSettings:r.props.pixelSyncSettings,logger:r.props.logger,identityPool:r.props.identityPool,integration:r.props.integration,storageHandler:r.props.storageHandler}),r.props.id5CollectionSettings.enabled&&e.scheduleId5Collection(r.props.id5CollectionSettings.pollingInterval),r.props.eventTriggeredCollectionSettings.pageEvents.length>0&&e.scheduleOnPageEvents(r.props.eventTriggeredCollectionSettings.pageEvents,{type:"collect_to_side_channel",clientRef:t}),(r.props.emailExtractionSettings.queryParameterRegexes.length>0||r.props.emailExtractionSettings.emailCssSelectors.length>0||r.props.emailExtractionSettings.windowPropertyPaths.length>0)&&e.scheduleAfterDelay(r.props.hubConfig.sideChannelRegisterCollectDelay,{type:"collect_to_side_channel",clientRef:t}),r.props.autoCollectSettings.enabled&&e.scheduleAfterDelay(r.props.autoCollectSettings.delay,{type:"attempt_auto_collect",clientRef:t})}))()}collectsOnId5Change(){return this.props.eventTriggeredCollectionSettings.onId5Change.enabled}}class lS extends Qw{constructor(e,t){super("ResolveIdentityError",e,{cause:t})}}class uS extends Qw{constructor(e){super("CollectError","Failed to collect",{cause:e})}}class dS extends Qw{constructor(e){super("CollectToSideChannelError","Failed to collect to side channel",{cause:e})}}class fS extends Qw{constructor(e,t){super("EvalPageSettingsError",e,{cause:t})}}const pS={empty:{emailCssSelectors:[],queryParameterRegexes:[],windowPropertyPaths:[]},combine:(e,t)=>({emailCssSelectors:e.emailCssSelectors.concat(t.emailCssSelectors),queryParameterRegexes:e.queryParameterRegexes.concat(t.queryParameterRegexes),windowPropertyPaths:e.windowPropertyPaths.concat(t.windowPropertyPaths)})},hS={empty:{pageEvents:[],onId5Change:{enabled:!1}},combine:(e,t)=>({pageEvents:e.pageEvents.concat(t.pageEvents),onId5Change:{enabled:e.onId5Change.enabled||t.onId5Change.enabled}})},vS={empty:{emailExtractionSettings:pS.empty,eventTriggeredCollectionSettings:hS.empty},combine:(e,t)=>({emailExtractionSettings:pS.combine(e.emailExtractionSettings,t.emailExtractionSettings),eventTriggeredCollectionSettings:hS.combine(e.eventTriggeredCollectionSettings,t.eventTriggeredCollectionSettings)})},gS=e=>{var t;const r=e.getEvents().find((e=>{var t;return"register_client"===(null==e||null===(t=e.context)||void 0===t||null===(t=t.command)||void 0===t?void 0:t.type)})),n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{let r=!1;try{t.forEach((e=>{e.eventBus.once("pre_lips",(()=>{r=!0}))}))}catch(t){e.error(new wS("Error while checking if collect has been called globally",t))}return r};class mS{constructor(e){hw(this,"config",void 0),hw(this,"eventBus",{once:(e,t)=>{"pre_lips"===e&&t()}}),this.config=e}}class wS extends Qw{constructor(e,t){super("LiQInstancesError",e,{cause:t})}}class bS{constructor(){hw(this,"retrievedIdentifiersFromPartnerCookies",new Map),hw(this,"extractedHashesFromPartnerCookies",new Map),hw(this,"providedEmailHashes",[]),hw(this,"ipv4",void 0),hw(this,"ipv6",void 0),hw(this,"userAgent",void 0),hw(this,"id5",void 0)}addPartnerCookies(e){return e.retrieved.forEach((e=>{this.retrievedIdentifiersFromPartnerCookies.set(e.name,e.value)})),e.extractedHashes.forEach((e=>{this.extractedHashesFromPartnerCookies.set(e.md5,e)})),this}getRetrievedIdentifiers(){return Array.from(this.retrievedIdentifiersFromPartnerCookies,(([e,t])=>({name:e,value:t})))}getExtractedHashes(){return Array.from(this.extractedHashesFromPartnerCookies,(([e,t])=>t))}addSourceEventEmails(e){return e.hashedEmails.forEach((e=>{var t;Kn(t=this.providedEmailHashes).call(t,e)})),this}getProvidedEmailHashes(){return this.providedEmailHashes}addIpv4(e){return this.ipv4=e.ipv4,this}getIpv4(){return this.ipv4}addIpv6(e){return this.ipv6=e.ipv6,this}getIpv6(){return this.ipv6}addUserAgent(e){return this.userAgent=e.userAgent,this}getUserAgent(){return this.userAgent}addId5Data(e){return this.id5=e,this}getId5Data(){return this.id5}}const xS="_li_dcdm_c",SS=()=>document.domain||document.location&&document.location.host||window&&window.location&&window.location.host||"localhost",kS=(e,t)=>{const r=SS(),n=r.split(".");for(let r=n.length;r>0;r--){const o=`.${n.slice(r-1,n.length).join(".")}`;if(ES(o,e,t),IS(e,t)===o)return o}return _S(r,e,t),`.${r}`},ES=(e,t,r)=>{try{t.setCookie(xS,e,{sameSite:"lax",domain:e})}catch(e){r.warn("Failed to set TLD cache",{error:e})}},IS=(e,t)=>{try{return e.getCookie(xS)}catch(e){t.warn("Failed to get TLD cache",{error:e})}},_S=(e,t,r)=>{try{t.deleteCookie(xS,e)}catch(e){r.warn("Failed to delete TLD cache",{error:e})}};let PS;const CS=new Uint8Array(16);function OS(){if(!PS&&(PS="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!PS))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return PS(CS)}const jS=[];for(let e=0;e<256;++e)Kn(jS).call(jS,(e+256).toString(16).slice(1));var LS={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function AS(e,t,r){if(LS.randomUUID&&!t&&!e)return LS.randomUUID();const n=(e=e||{}).random||(e.rng||OS)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return jS[e[t+0]]+jS[e[t+1]]+jS[e[t+2]]+jS[e[t+3]]+"-"+jS[e[t+4]]+jS[e[t+5]]+"-"+jS[e[t+6]]+jS[e[t+7]]+"-"+jS[e[t+8]]+jS[e[t+9]]+"-"+jS[e[t+10]]+jS[e[t+11]]+jS[e[t+12]]+jS[e[t+13]]+jS[e[t+14]]+jS[e[t+15]]}(n)}const TS="_li_ss",RS="li_sync_frame";let DS=!1,US=null;const FS=(e,t)=>{var r;return null!==(r=NS(e,t))&&void 0!==r?r:HS(e,t)},NS=(e,t)=>{try{return e.getDataFromLocalStorage(TS)}catch(e){t.error(new GS("Error while loading sync state from local storage",{cause:e}))}},HS=(e,t)=>{try{return e.getCookie(TS)}catch(e){t.error(new GS("Error while loading sync state form cookie storage",e))}},MS=(e,t,r,n)=>{try{t&&t.replace(/([^=]+)=([^&]*)&?/g,((t,o,i)=>{if(o=decodeURIComponent(o),i=decodeURIComponent(i),o===TS){try{e.setDataInLocalStorage(o,i)}catch(e){r.error(new GS("Error while persisting sync state in local storage",e))}try{e.setCookie(o,i,{expires:Ix(730),sameSite:"lax",domain:n})}catch(e){r.error(new GS("Error while persisting sync state in cookie storage",e))}}return""}))}catch(e){r.error(new GS("Error while handling SC message",e))}},$S={stripEmpty:!1},qS=e=>`${e.syncContainerEndpointUrl}${(({pageViewId:e,appId:t,distributorIds:r,consent:n,domainDetails:o,liveConnectFpc:i,syncState:a,pixelSyncSettings:s,hubVersion:c})=>{var l,u,d;return Vw.empty().addOptional("duid",i,$S).addOptional("appId",t,$S).addArray("ds",(r||[]).filter(Boolean),$S).add("euns",s.euns?1:0,$S).addOptional("pt",s.pixelTimeout,$S).addOptional("s",a,$S).addOptional("us_privacy",null===(l=n.usPrivacy)||void 0===l?void 0:l.consentString,$S).addOptional("gpp_s",null===(u=n.gpp)||void 0===u?void 0:u.consentString,$S).addOptional("gpp_as",null===(d=n.gpp)||void 0===d||null===(d=d.applicableSections)||void 0===d?void 0:d.join(","),$S).addOptional("version",c,$S).addOptional("cd",o.cookieDomain,$S).add("pv",e).build()})(e)}`,BS=e=>window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e);class GS extends Qw{constructor(e,t){super("SyncContainerError",e,{cause:t})}}class VS extends Qw{constructor(e,t){super("SyncContainerLoadError",e,{cause:t})}}class QS{constructor(e,t,r,n,o,i,a,s){hw(this,"storageHandlerFactory",void 0),hw(this,"callHandlerFactory",void 0),hw(this,"consentManager",void 0),hw(this,"logger",void 0),hw(this,"hubConfig",void 0),hw(this,"commandQueue",void 0),hw(this,"scheduler",void 0),hw(this,"sharedData",void 0),hw(this,"clientHandlers",new Map),hw(this,"sharedIdentityPool",new bS),this.storageHandlerFactory=e,this.callHandlerFactory=t,this.consentManager=r,this.logger=n,this.hubConfig=o,this.commandQueue=i,this.scheduler=a,this.sharedData=s}static makeAsync(e,t,r,n,o,i,a){const s={pageDetails:vw(),pageViewId:AS()};return Ly.resolve(new QS(e,t,r,n,o,i,a,s))}processCommand(e){var t=this;return pw((function*(){switch(t.logger.info(`hub received command of type ${e.type}`,{command:e}),e.type){case"register_client":return t.processRegisterClientCommand(e);case"collect":return t.processCollectCommand(e);case"resolve":return t.processResolveCommand(e);case"log":return t.processLogCommand(e);case"debug":return t.processDebugCommand(e);case"sync_container":return t.syncContainer(e),Ly.resolve();case"collect_to_side_channel":return t.processCollectToSideChannelCommand(e);case"attempt_auto_collect":return t.processAttemptAutoCollectCommand(e);case"new_id5_available":return t.processNewId5AvailableEvent(e);default:Ex(e)}}))()}syncContainer(e){e.pixelSyncSettings.enabled&&ub(e.consent)&&(e=>{null===document.getElementById(RS)?(US||setTimeout((()=>(e=>{if(!US)return;const{storageHandler:t,logger:r,syncContainerEndpointUrl:n,domainDetails:o}=US;try{const i=FS(t,r)||"",a=qS(dw(dw({},US),{},{syncState:i})),s=document.createElement("iframe");if(!s||!document.body)return void r.error(new GS("Failed to create iframe for sync container"));if(s.style.opacity="0",s.style.width="0px",s.style.height="0px",s.style.border="0px",s.style.position="absolute",s.style.top="0px",s.style.left="0px",s.style.zIndex="-1000",s.id=RS,s.title="data","postMessage"in window){const e=new sf(n).origin;BS((n=>{n.origin===e&&n.data&&"string"==typeof n.data&&(DS=!0,MS(t,n.data,r,o.cookieDomain))}))}s.src=a,document.body.appendChild(s),s.onload=function(){setTimeout((()=>{DS||r.error(new VS("Error while loading sync container"))}),e)}}catch(e){r.error(new GS("Error while launching sync container",e))}})(e.iframeMessageTimeout)),e.syncWait),US=((e,t)=>{var r,n,o,i,a;return dw(dw(dw({},e),t),{},{pixelSyncSettings:{euns:(void 0!==(null===(r=e.pixelSyncSettings)||void 0===r?void 0:r.euns)?e.pixelSyncSettings.euns:t.pixelSyncSettings.euns)||t.pixelSyncSettings.euns,pixelTimeout:Math.max(null!==(n=null===(o=e.pixelSyncSettings)||void 0===o?void 0:o.pixelTimeout)&&void 0!==n?n:0,null!==(i=t.pixelSyncSettings.pixelTimeout)&&void 0!==i?i:0)||void 0},consent:e.appId?e.consent:t.consent,appId:null!==(a=e.appId)&&void 0!==a?a:"application"===t.integration.type?t.integration.appId:void 0,distributorIds:[...e.distributorIds||[],..."distributor"===t.integration.type?[t.integration.distributorId]:[]]})})(US||{},e)):e.logger.info("Sync container already launched")})({integration:e.integration,consent:e.consent,domainDetails:e.domainDetails,liveConnectFpc:e.liveConnectFpc,storageHandler:e.storageHandler,pixelSyncSettings:e.pixelSyncSettings,syncWait:this.hubConfig.syncWait,syncContainerEndpointUrl:this.hubConfig.syncContainerEndpointUrl,hubVersion:this.hubConfig.hubVersion,logger:e.logger,identityPool:e.identityPool,pageViewId:this.sharedData.pageViewId,iframeMessageTimeout:this.hubConfig.iframeMessageTimeout})}processRegisterClientCommand(e){var t=this;return pw((function*(){const r=e.clientRef;if(t.clientHandlers.has(r))t.logger.error(new WS,{clientRef:r,command:e,existingState:t.clientHandlers.get(r)});else try{var n;const o=null!=e.consent?e.consent:yield t.consentManager.loadConsent(),i=(e=>{var t,r,n,o;return!(!e.forcedPrivacyMode&&(!(null!==(t=e.gpp)&&void 0!==t&&Ff(r=t.applicableSections).call(r,2)||null!==(n=e.gdpr)&&void 0!==n&&n.gdprApplies)||null!==(o=e.gdpr)&&void 0!==o&&o.consentString&&tb(e.gdpr.tcfPurpose,Yw)&&eb(e.gdpr.tcfVendor,Zw)))})(o)?new bS:t.sharedIdentityPool,a=t.logger.withContext({clientRef:r,registration:e,appId:"application"===e.integration.type?e.integration.appId:void 0,distributorId:"distributor"===e.integration.type?e.integration.distributorId:void 0,wrapperName:""!==fm(n=e.clientDetails.name).call(n)?e.clientDetails.name:"not-provided"}),s=t.callHandlerFactory.fromConsent(o,a),c=t.storageHandlerFactory.fromConsent(o,a),l=ob(o)?(({storageHandler:e,logger:t})=>({cookieDomain:kS(e,t)}))({storageHandler:c,logger:a}):{cookieDomain:`.${SS()}`},u=(({settings:e,monoid:t,pageDetails:r,logger:n})=>{let o=t.empty;try{const n=(e=>Zf(e).map((([e,t])=>[new RegExp(e),Zf(t).map((([e,t])=>[new RegExp(e),t]))])))(e),[i,a]=(e=>null==e.pageUrl?["",""]:[e.pageUrl.hostname,e.pageUrl.pathname])(r);n.filter((([e])=>e.test(i))).forEach((([,e])=>{e.filter((([e])=>e.test(a))).forEach((([,e])=>{o=t.combine(o,e)}))}))}catch(e){n.error(new fS("Failed to evaluate page settings",e))}return o})({settings:e.pageDependentSettings,monoid:vS,pageDetails:t.sharedData.pageDetails,logger:a}),d=pS.combine(e.emailExtractionSettings,u.emailExtractionSettings),f=hS.combine(e.eventTriggeredCollectionSettings,u.eventTriggeredCollectionSettings),p=new cS({logger:a,callHandler:s,storageHandler:c,consent:o,hubConfig:t.hubConfig,sharedData:t.sharedData,domainDetails:l,contextElementCollectionSettings:e.contextElementCollectionSettings,partnerCookiesToResolve:e.partnerCookies,clientDetails:e.clientDetails,integration:e.integration,urlCollectionSettings:e.urlCollectionSettings,collectSettings:e.collectSettings,autoCollectSettings:e.autoCollectSettings,resolveSettings:e.resolveSettings,pixelSyncSettings:e.pixelSyncSettings,id5CollectionSettings:e.id5CollectionSettings,emailExtractionSettings:d,eventTriggeredCollectionSettings:f,identityPool:i});t.clientHandlers.set(r,p),t.logger.info("Client registered",{clientRef:r}),yield p.runStartupTasks(t.scheduler,r)}catch(r){t.logger.error(new zS(r),{command:e})}}))()}processCollectCommand(e){const t=this.loadClientHandler(e.clientRef);return null==t?Ly.resolve():this.doCollect(t,e.sourceEvent)}processCollectToSideChannelCommand(e){const t=this.loadClientHandler(e.clientRef);return null==t?Ly.resolve():t.tryCollectToSideChannel()}processResolveCommand(e){const t=this.loadClientHandler(e.clientRef);return null==t?Ly.resolve():t.resolve({requestedAttributes:e.requestedAttributes,additionalResolveParameters:e.additionalResolveParameters,onSuccess:e.onSuccess,onFailure:e.onFailure})}processAttemptAutoCollectCommand(e){const t=this.loadClientHandler(e.clientRef);return null==t?Ly.resolve():(r=this.logger,window.liQ_instances=null!==(n=window.liQ_instances)&&void 0!==n?n:[],yS(r,window.liQ_instances)||this.commandQueue.collectQueued()?(this.logger.info("Auto collect was attempted but was skipped",{clientRef:e.clientRef}),Ly.resolve()):this.doCollect(t,{}));var r,n}processLogCommand(e){switch(e.level){case"debug":this.logger.debug(e.message,e.context);break;case"info":this.logger.info(e.message,e.context);break;case"warn":this.logger.warn(e.message,e.context);break;case"error":{const t=new Qw(e.name,e.message,{cause:e.cause});this.logger.error(t,e.context)}break;default:Ex(e)}return Ly.resolve()}processDebugCommand(e){return null!=e.onEvents&&e.onEvents(this.logger.getEvents()),null!=e.onHub&&e.onHub(this),Ly.resolve()}processNewId5AvailableEvent(e){return this.sharedIdentityPool.addId5Data({id5:e.id5,linkType:e.linkType}),this.forAllClients(((e,t)=>{t.collectsOnId5Change()&&this.commandQueue.pushInternal({type:"collect_to_side_channel",clientRef:e})})),Ly.resolve()}loadClientHandler(e){const t=this.clientHandlers.get(e);return null==t&&this.logger.error(new JS,{ref:e}),t}forAllClients(e){this.clientHandlers.forEach(((t,r)=>e(r,t)))}doCollect(e,t){return(e=>{if(null==window.liQ_instances)window.liQ_instances=[new mS(gS(e))];else if(!yS(e,window.liQ_instances)){var t;Kn(t=window.liQ_instances).call(t,new mS(gS(e)))}})(this.logger),e.collect(t)}}class WS extends Qw{constructor(){super("DuplicateClientRegisterError","Received duplicate registration for the same ref")}}class zS extends Qw{constructor(e){super("RegisterClientError","Failed registering a new client",{cause:e})}}class JS extends Qw{constructor(){super("UnknownClientError","Client passed an unknown client ref")}}class KS extends Qw{constructor(e,t){super("SubscribeToPageEventsError",e,{cause:t})}}class XS{constructor(e,t){hw(this,"commandQueue",void 0),hw(this,"logger",void 0),hw(this,"id5CollectionEnabled",!1),this.commandQueue=e,this.logger=t}scheduleAfterDelay(e,t){this.logger.info(`Scheduling ${t.type} for ${e}ms from now`),setTimeout((()=>{this.logger.info(`Executing scheduled ${t.type}`),this.commandQueue.pushInternal(t)}),e)}scheduleOnPageEvents(e,t){const r=e.map((e=>({cssSelector:e.eventSourceCssSelector,eventType:e.eventType,action:()=>{this.logger.info(`Scheduling ${t.type} for page event`,{event:e,command:t}),this.commandQueue.pushInternal(t)}})));this.logger.info(`Subscribing to ${r.length} page events`,{events:e}),(({listeners:e,logger:t})=>{if(0===e.length)return;const r=()=>{e.forEach((e=>{try{document.querySelectorAll(e.cssSelector).forEach((r=>{r.addEventListener(e.eventType,(()=>{try{e.action()}catch(e){t.error(new KS("Failed to execute action for listener",e))}}))}))}catch(e){t.error(new KS("Failed to subscribe listener",e))}}))};try{"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)}catch(e){t.error(new KS("Failed to subscribe to DOMContentLoaded event",e))}})({listeners:r,logger:this.logger})}scheduleId5Collection(e){const t=this,r=()=>(()=>{if(null==window.ID5)return!1;try{window.ID5.init({partnerId:"538"}).onUpdate((e=>{const r=e.getUserId(),n=e.getLinkType();t.logger.info("Received id5 data",{id5:r,linkType:n}),t.commandQueue.pushInternal({type:"new_id5_available",id5:r,linkType:n})}))}catch(e){t.logger.error(new YS(e))}return!0})()?Ly.resolve():new Ly((t=>setTimeout(t,e))).then(r);this.id5CollectionEnabled||(this.id5CollectionEnabled=!0,this.logger.info("Scheduling id5 collection"),r())}}class YS extends Qw{constructor(e){super("Id5RegisterError","Failed to register to id5 api",{cause:e})}}const ZS=()=>rx((e=>"function"==typeof e),"A function is required!"),ek=fx([ux(),ax(),tx(),function e(t){return{kind:"schema",type:"null",reference:e,expects:"null",async:!1,message:t,_run(e,t){return null===e.value?e.typed=!0:Xb(this,"type",e,t),e}}}(),function e(t){return{kind:"schema",type:"undefined",reference:e,expects:"undefined",async:!1,message:t,_run(e,t){return void 0===e.value?e.typed=!0:Xb(this,"type",e,t),e}}}(),ex(nx((()=>ek))),lx(ux(),nx((()=>ek))),sx({toJSON:ZS()})]),tk=lx(ux(),ek),rk=cx(function e(t,r){return{kind:"schema",type:"set",reference:e,expects:"Set",async:!1,value:t,message:r,_run(e,t){const r=e.value;if(r instanceof Set){e.typed=!0,e.value=new Set;for(const i of r){const a=this.value._run({typed:!1,value:i},t);if(a.issues){const s={type:"set",origin:"value",input:r,key:null,value:i};for(const t of a.issues){var n,o;t.path?wf(o=t.path).call(o,s):t.path=[s],null===(n=e.issues)||void 0===n||Kn(n).call(n,t)}if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.add(a.value)}}else Xb(this,"type",e,t);return e}}}(ux()),new Set),nk=cx(sx({retries:cx(ax(),3),timeout:cx(ax(),0)}),{}),ok=cx(sx({enabled:cx(tx(),!0),delay:cx(ax(),120)}),{}),ik=vx(cx(ix({type:cx(ux(),"generated")}),{}),hx("type",[sx({type:ox("generated")}),sx({type:ox("provided"),source:fx([ox("cookie"),ox("local_storage")]),key:ux()})])),ak=sx({gdprApplies:cx(tx()),consentString:ux()}),sk=sx({consentString:ux()}),ck=sx({consentString:ux(),applicableSections:ex(ax())}),lk=sx({forcedPrivacyMode:cx(tx(),!1),gdpr:cx(ak),usPrivacy:cx(sk),gpp:cx(ck)}),uk=cx(lk),dk=rx((e=>"object"==typeof e),"An object is required!"),fk=hx("type",[sx({type:ox("application"),appId:cx(ux()),publisherId:cx(ux())}),sx({type:ox("distributor"),distributorId:ux()}),sx({type:ox("custom"),publisherId:cx(ux()),distributorId:cx(ux())})]),pk=sx({name:ux(),version:ux(),collaborator:cx(ux())}),hk=cx(sx({mode:cx(fx([ox("full"),ox("no_path")]),"full"),queryParametersFilter:cx(ux())}),{}),vk=vx(cx(ix({enabled:cx(tx(),!1)}),{}),hx("enabled",[sx({enabled:ox(!1)}),sx({enabled:ox(!0),contextSelectors:ux(),maxLength:ax()})])),gk=cx(sx({timeout:cx(ax(),5e3),identityPartner:cx(ux(),"unknown")}),{}),yk=hx("type",[sx({type:ox("write_to_local_storage"),targetKey:ux()}),sx({type:ox("write_to_cookie"),targetKey:ux(),sameSite:cx(fx([ox("strict"),ox("lax"),ox("none")])),domain:cx(ux())}),sx({type:ox("callback"),callback:ZS()})]),mk=vx(cx(ix({enabled:cx(tx(),!1)}),{}),hx("enabled",[sx({enabled:ox(!1)}),sx({enabled:ox(!0),euns:cx(tx(),!1),pixelTimeout:cx(ax())})])),wk=cx(sx({emailCssSelectors:cx(ex(ux()),[]),queryParameterRegexes:cx(ex(ux()),[]),windowPropertyPaths:cx(ex(ux()),[])}),{}),bk=vx(cx(ix({enabled:cx(tx(),!1)}),{}),hx("enabled",[sx({enabled:ox(!1)}),sx({enabled:ox(!0),pollingInterval:cx(ax(),500)})])),xk=sx({eventSourceCssSelector:ux(),eventType:ux()}),Sk=cx(sx({pageEvents:cx(ex(xk),[]),onId5Change:cx(sx({enabled:cx(tx(),!1)}),{})}),{}),kk=cx(vx(ex(ux()),function e(t){return{kind:"transformation",type:"transform",reference:e,async:!1,operation:t,_run(e){return e.value=this.operation(e.value),e}}}((e=>new Set(e)))),[]),Ek=fx([ux(),ax(),tx()]),Ik=cx(lx(ux(),fx([Ek,ex(Ek)])),{}),_k=cx(lx(ux(),lx(ux(),sx({emailExtractionSettings:cx(wk,{}),eventTriggeredCollectionSettings:cx(Sk,{})}))),{}),Pk=sx({type:ox("register_client"),clientRef:dk,clientDetails:pk,integration:fk,consent:uk,partnerCookies:rk,idCookieSettings:ik,urlCollectionSettings:hk,contextElementCollectionSettings:vk,collectSettings:nk,autoCollectSettings:ok,resolveSettings:gk,pixelSyncSettings:mk,eventTriggeredCollectionSettings:Sk,emailExtractionSettings:wk,id5CollectionSettings:bk,pageDependentSettings:_k}),Ck=sx({type:ox("collect"),clientRef:dk,sourceEvent:tk}),Ok=sx({type:ox("resolve"),clientRef:dk,requestedAttributes:kk,additionalResolveParameters:Ik,onFailure:cx(ZS()),onSuccess:ex(yk)}),jk=hx("level",[sx({type:ox("log"),level:ox("debug"),message:ux(),context:cx(ix({}))}),sx({type:ox("log"),level:ox("info"),message:ux(),context:cx(ix({}))}),sx({type:ox("log"),level:ox("warn"),message:ux(),context:cx(ix({}))}),sx({type:ox("log"),level:ox("error"),name:ux(),message:ux(),cause:cx(function e(t,r){return{kind:"schema",type:"instance",reference:e,expects:t.name,async:!1,class:t,message:r,_run(e,t){return e.value instanceof this.class?e.typed=!0:Xb(this,"type",e,t),e}}}(Error)),context:cx(ix({}))})]),Lk=hx("type",[Pk,Ck,Ok,sx({type:ox("debug"),onEvents:cx(ZS()),onHub:cx(ZS())}),jk]),Ak=ix({globalVarName:ux(),distributorId:ux(),wrapperName:cx(ux()),collaborator:cx(ux()),usPrivacyString:cx(ux()),gdprApplies:cx(tx(),!1),gdprConsent:cx(ux()),forcedPrivacyMode:cx(tx(),!1),sync:cx(tx()),euns:cx(tx()),pixelTimeout:cx(ax()),identifiersToResolve:cx(fx([ux(),ex(ux())])),identityResolutionConfig:cx(sx({ajaxTimeout:cx(ax()),source:cx(ux()),requestedAttributes:cx(ex(ux())),idCookieMode:cx(fx([ox("generated"),ox("provided")]))})),urlCollectionMode:cx(fx([ox("full"),ox("no_path")]),"full"),queryParametersFilter:cx(ux()),ajaxTimeout:cx(ax()),ajaxRetries:cx(ax()),contextSelectors:cx(ux()),contextElementsLength:cx(ax()),peopleVerifiedId:cx(ux()),gppString:cx(ux()),gppApplicableSections:cx(ex(ax())),resolutionSync:vx(cx(ix({enabled:cx(tx(),!1)}),{}),hx("enabled",[sx({enabled:ox(!1)}),sx({enabled:ox(!0),targetKey:ux(),strategy:fx([ox("cookie"),ox("ls")]),resolutionOptions:Ik})])),scrapingCookieNames:cx(fx([ux(),ex(ux())])),defaultEventDelay:cx(ax()),emailExtraction:cx(px()),id5Collection:cx(px()),eventTriggeredCollection:cx(px()),pageDependentSettings:cx(px())});sx({appId:cx(ux()),wrapperName:cx(ux()),usPrivacyString:cx(ux()),collaborator:cx(ux()),gdprApplies:cx(tx(),!1),gdprConsent:cx(ux()),forcedPrivacyMode:cx(tx(),!1),identifiersToResolve:cx(fx([ux(),ex(ux())])),identityResolutionConfig:cx(sx({ajaxTimeout:cx(ax()),source:cx(ux()),publisherId:cx(fx([ux(),ax()])),requestedAttributes:cx(ex(ux())),idCookieMode:cx(fx([ox("generated"),ox("provided")]))})),urlCollectionMode:cx(fx([ox("full"),ox("no_path")]),"full"),queryParametersFilter:cx(ux()),ajaxTimeout:cx(ax()),ajaxRetries:cx(ax()),contextSelectors:cx(ux()),contextElementsLength:cx(ax()),gppString:cx(ux()),gppApplicableSections:cx(ex(ax())),scrapingCookieNames:cx(fx([ux(),ex(ux())])),defaultEventDelay:cx(ax()),sync:cx(tx()),euns:cx(tx()),pixelTimeout:cx(ax()),emailExtraction:cx(px()),id5Collection:cx(px()),eventTriggeredCollection:cx(px()),pageDependentSettings:cx(px())});class Tk{constructor(e,t,r,n,o){hw(this,"logger",void 0),hw(this,"running",!1),hw(this,"hubPromise",void 0),hw(this,"bufferedCommands",[]),this.logger=n;const i=new XS(this,this.logger.withContext({component:"scheduler"}));this.hubPromise=QS.makeAsync(e,t,r,n,o,this,i)}push(...e){for(const t of e){const e=gx(Lk,t);e.success?this.pushInternal(e.output):this.logger.error(new Rk(t,e.issues))}return this.bufferedCommands.length}pushInternal(...e){var t;const r=Kn(t=this.bufferedCommands).call(t,...e);return this.running||(this.running=!0,this.drain()),r}collectQueued(){return this.bufferedCommands.some((e=>"collect"===e.type))}get length(){return this.bufferedCommands.length}drain(){var e=this;return pw((function*(){const t=yield e.hubPromise;for(;e.bufferedCommands.length>0;){const r=e.bufferedCommands.shift();try{yield t.processCommand(r)}catch(t){e.logger.error(new Dk(t),{command:r})}}e.running=!1}))()}}class Rk extends Qw{constructor(e,t){super("MalformedCommandError","hub received malformed command"),hw(this,"command",void 0),hw(this,"issues",void 0),this.command=e,this.issues=t,this.command=e,this.issues=t}}class Dk extends Qw{constructor(e){super("CommandExecutionError","Failed to execute command",{cause:e})}}if(null==window.liQHub||Array.isArray(window.liQHub)){const e=new Jw({callHandler:new hb(Vb.make()),pixelBaseUrl:Jb,sampleRate:.1,version:zb}),t=Vb.make(1e3,[e]).withContext({wrapperName:"hub"}),r=new db,n=new Tk(new Nb,r,new Db(t),t,{hubVersion:zb,syncContainerEndpointUrl:"https://api.vector.co/pixel/phoenix/sync-container",idexEndpointUrl:"https://api.vector.co/pixel/phoenix/idex",syncWait:250,pixelBaseUrl:Jb,sideChannelCollectorUrl:"https://api.vector.co/pixel/phoenix/rpr",sideChannelRegisterCollectDelay:1e3,iframeMessageTimeout:250});Array.isArray(window.liQHub)&&window.liQHub.forEach((e=>Kn(n).call(n,e))),window.liQHub={push:(...e)=>Kn(n).call(n,...e),length:n.length}}else console.log("Not starting liQHub: window.liQHub is neither undefined nor an array");class Uk{constructor(e,t){hw(this,"pusher",void 0),hw(this,"version",void 0),hw(this,"seenGlobalVarNames",new Set),this.pusher=e,this.version=t}push(...e){for(const o of e){const e=gx(Ak,o);if(e.success){const n=e.output.globalVarName;if(this.seenGlobalVarNames.has(n)){var t;Kn(t=this.pusher()).call(t,{type:"log",level:"error",name:"DistributorEntryDuplicateConfigForVarname",message:`Distributor config already received for global var name ${n}`})}else{const t=Fk.make(this.pusher,this.version,e.output);var r;null==t?Kn(r=this.pusher()).call(r,{type:"log",level:"error",name:"DistributorEntryFailedToCreateClient",message:"Failed to create distributor client"}):this.attachClientToWindow(t,n)}}else{var n;Kn(n=this.pusher()).call(n,{type:"log",level:"error",name:"DistributorEntryInvalidConfig",message:"Invalid distributor config received",context:{issues:e.issues}})}}return this.pusher.length}get length(){return this.pusher.length}attachClientToWindow(e,t){const r=window,n=r[t];if(null==n)r[t]=e,this.seenGlobalVarNames.add(t);else if(Array.isArray(n))n.forEach((t=>Kn(e).call(e,t))),r[t]=e,this.seenGlobalVarNames.add(t);else{var o;Kn(o=this.pusher()).call(o,{type:"log",level:"error",name:"DistributorEntryVarNameAlreadyTaken",message:`Global var name ${t} already taken`})}}}class Fk{constructor(e,t,r){hw(this,"config",void 0),hw(this,"pusher",void 0),hw(this,"clientRef",void 0),hw(this,"ready",!0),this.config=e,this.pusher=t,this.clientRef=r}static make(e,t,r){var n,o,i,a,s;const c={},l=r.identityResolutionConfig,u=null!==(n=null==l?void 0:l.requestedAttributes)&&void 0!==n?n:[],d=new Fk(r,e,c);if(Kn(o=e()).call(o,{type:"register_client",clientRef:c,integration:$k(r),partnerCookies:Mk(r),clientDetails:{name:null!==(i=r.wrapperName)&&void 0!==i?i:"lc-bundle",version:t,collaborator:r.collaborator},consent:Hk(r),contextElementCollectionSettings:qk(r),urlCollectionSettings:Nk(r),collectSettings:{timeout:r.ajaxTimeout,retries:r.ajaxRetries},autoCollectSettings:{enabled:!0,delay:r.defaultEventDelay},pixelSyncSettings:{enabled:r.sync,pixelTimeout:r.pt,euns:r.euns},resolveSettings:{identityPartner:null===(a=r.identityResolutionConfig)||void 0===a?void 0:a.source},emailExtractionSettings:r.emailExtraction,id5CollectionSettings:r.id5Collection,eventTriggeredCollectionSettings:r.eventTriggeredCollection,pageDependentSettings:r.pageDependentSettings}),null!==(s=r.resolutionSync)&&void 0!==s&&s.enabled){var f;const t=r.resolutionSync,n="cookie"===t.strategy?{type:"write_to_cookie",targetKey:t.targetKey}:{type:"write_to_local_storage",targetKey:t.targetKey};Kn(f=e()).call(f,{type:"resolve",clientRef:c,onSuccess:[n],requestedAttributes:u,additionalResolveParameters:t.resolutionOptions})}return d}push(...e){e.forEach((e=>this.pushOne(e)))}resolve(e,t,r){"function"==typeof t?this.resolveHelper(e,t,r):this.resolveHelper(e,void 0,t)}resolveHelper(e,t,r){var n,o,i;Kn(n=this.pusher()).call(n,{type:"resolve",clientRef:this.clientRef,onSuccess:[{type:"callback",callback:e}],onFailure:t,requestedAttributes:null!==(o=null===(i=this.config.identityResolutionConfig)||void 0===i?void 0:i.requestedAttributes)&&void 0!==o?o:[],additionalResolveParameters:r})}pushOne(e){var t;null!=e&&"object"==typeof e&&Kn(t=this.pusher()).call(t,{type:"collect",clientRef:this.clientRef,sourceEvent:e})}}const Nk=e=>({mode:e.urlCollectionMode,queryParametersFilter:e.queryParametersFilter}),Hk=e=>{var t;if(!e.forcedPrivacyMode&&null==e.gdprConsent&&null==e.usPrivacyString&&null==e.gppString)return;const r=null!=e.gdprConsent?{gdprApplies:e.gdprApplies,consentString:e.gdprConsent}:void 0;return{forcedPrivacyMode:e.forcedPrivacyMode,gdpr:r,usPrivacy:null!=e.usPrivacyString?{consentString:e.usPrivacyString}:void 0,gpp:null!=e.gppString?{consentString:e.gppString,applicableSections:null!==(t=e.gppApplicableSections)&&void 0!==t?t:[]}:void 0}},Mk=e=>{var t,r;const n=null!==(t=null!==(r=e.identifiersToResolve)&&void 0!==r?r:e.scrapingCookieNames)&&void 0!==t?t:[];return"string"==typeof n?new Set(n.split(",").map((e=>fm(e).call(e)))):new Set(n)},$k=e=>({type:"distributor",distributorId:e.distributorId}),qk=e=>{var t;return null!=e.contextSelectors?{enabled:!0,contextSelectors:e.contextSelectors,maxLength:null!==(t=e.contextElementsLength)&&void 0!==t?t:0}:{enabled:!1}};if(window.liQHub=null!==(sw=window.liQHub)&&void 0!==sw?sw:[],null==window.liQd)window.liQd=new Uk((()=>window.liQHub),zb);else if(Array.isArray(window.liQd)){const e=new Uk((()=>window.liQHub),zb);window.liQd.forEach((t=>Kn(e).call(e,t))),window.liQd=e}else if("object"==typeof window.liQd&&"push"in window.liQd){var Bk;Kn(Bk=window.liQHub).call(Bk,{type:"log",level:"info",message:"Not initializing liQd as it is already present"})}else{var Gk;Kn(Gk=window.liQHub).call(Gk,{type:"log",level:"error",name:"DistributorEntryInvalidWindow",message:"window.liQd is neither null or an array"})}}(),(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}function l(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,s,"next",e)}function s(e){l(i,n,o,a,s,"throw",e)}a(void 0)}))}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r1?n-1:0),i=1;i1?n-1:0),i=1;i2?t.slice(-2).join("."):e.location.hostname;document.cookie="vector_visitor_id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.".concat(r,"; SameSite=None; Secure"),document.cookie.split(";").forEach((function(e){var t=e.indexOf("="),n=t>-1?e.substring(0,t).trim():e.trim();n.startsWith("vector_")&&(document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.").concat(r,"; SameSite=None; Secure"))}))}catch(e){console.error("Error clearing visitor data:",e)}}},{key:"setLocalBlock",value:function(){try{var e={blocked:!0,timestamp:Date.now(),reason:"user_requested_removal"};g.setItem("visitor_blocked",JSON.stringify(e));try{localStorage.setItem("vector_visitor_blocked",JSON.stringify(e))}catch(e){}try{sessionStorage.setItem("vector_visitor_blocked",JSON.stringify(e))}catch(e){}}catch(e){console.error("Error setting local block:",e)}}},{key:"isVisitorBlocked",value:function(){try{var e=g.getItem("visitor_blocked");if(e)return!0===JSON.parse(e).blocked;try{var t=localStorage.getItem("vector_visitor_blocked");if(t)return!0===JSON.parse(t).blocked}catch(e){}try{var r=sessionStorage.getItem("vector_visitor_blocked");if(r)return!0===JSON.parse(r).blocked}catch(e){}return!1}catch(e){return console.error("Error checking visitor block status:",e),!1}}},{key:"page",value:(t=u(c().mark((function e(){var t=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.manager.runFor(this,u(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.pixelId){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,t.load(t.pixelId);case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),"Domain not allowed"!==e.t0.message&&console.error("page error:",e.t0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))));case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]);var t,r,n,o,i,f}(),h=function(){return p((function e(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;d(this,e),this.instances=new Map,this.instancesByPixel=new Map,this.activeInstance=null,this.eventHandlers={},this._queue=Array.isArray(n)?t(n):[],this.q=n,this.mode="unknown",this._partnerId=o,this._defineInstanceProperty("forceIdentityWaterfall",!1),this._defineInstanceProperty("useCerebroWaterfall",!1),this._defineInstanceProperty("formListeningState","us_only"),this._defineInstanceProperty("pixelMode","original",(function(e){e&&(r.mode=e)})),this._defineInstanceProperty("userAgent","Unknown"),Object.defineProperty(this,"partnerId",{configurable:!0,enumerable:!0,get:function(){return r._partnerId},set:function(e){r._partnerId=e,r.instances.forEach((function(t){t.partnerId=e}))}})}),[{key:"_defineInstanceProperty",value:function(e,t,r){var n=this;Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){var r=n.activeInstance||n._getDefaultInstance();return r&&void 0!==r[e]?r[e]:t},set:function(t){var o=n.activeInstance||n._getDefaultInstance();o&&(o[e]=t),"function"==typeof r&&r(t,o)}})}},{key:"_getDefaultInstance",value:function(){var e=this.instances.values().next();return e.done?null:e.value}},{key:"runFor",value:(l=u(c().mark((function e(t,r){var n,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.activeInstance,o=g.setNamespace(t.getStorageNamespace()),this.activeInstance=t,e.prev=3,e.next=6,r();case 6:return e.abrupt("return",e.sent);case 7:return e.prev=7,this.activeInstance=n,g.setNamespace(o),e.finish(7);case 11:case"end":return e.stop()}}),e,this,[[3,,7,11]])}))),function(e,t){return l.apply(this,arguments)})},{key:"_registerInstance",value:function(e,t,r){var n=this.instancesByPixel.get(e)||new Set;n.add(t),this.instancesByPixel.set(e,n),r.partnerId=this.partnerId}},{key:"_generateInstanceKey",value:function(e){return"".concat(e,"_").concat(Date.now(),"_").concat(Math.floor(1e3*Math.random()))}},{key:"_getLatestInstance",value:function(e){var t=this.instancesByPixel.get(e);if(!t||0===t.size)return null;var r=Array.from(t),n=r[r.length-1];return this.instances.get(n)||null}},{key:"_ensureInstanceForLoad",value:function(e){var t=this._getLatestInstance(e);if(t)return t;var r="multi"===this.mode?this._generateInstanceKey(e):e,n=new f(this,r);return this.instances.set(r,n),this._registerInstance(e,r,n),n}},{key:"load",value:function(e){return this._ensureInstanceForLoad(e).load(e)}},{key:"identify",value:(s=u(c().mark((function e(t){var r,n,o,i,a=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=a.length,n=new Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o1?"s":"",")")),e.forEach((function(e){var r=e.instanceKey,n=e.instance,o=n===t.activeInstance;console.group("".concat(o?"▶ ":"","Instance: ").concat(r));var i={instanceKey:n.instanceKey,pixelId:n.pixelId||"not set",visitorId:n.visitorId||"not set",externalId:n.externalId||"not set",partnerId:n.partnerId||"not set",hasInitialized:n.hasInitialized,storageNamespace:n.getStorageNamespace(),pixelMode:n.pixelMode||"not set",formListeningState:n.formListeningState||"not set",useCerebroWaterfall:n.useCerebroWaterfall,forceIdentityWaterfall:n.forceIdentityWaterfall,loadPromise:n.loadPromise?"pending/resolved":"none",lastIdentifyTimestamp:n.lastIdentifyTimestamp||"never"};console.table(i),console.groupEnd()})),console.groupEnd()})),console.group("Instance Registry"),console.log("Instances by Pixel ID:"),this.instancesByPixel.forEach((function(e,t){console.log(" ".concat(t,":"),Array.from(e))})),console.groupEnd(),console.groupEnd()}},{key:"on",value:function(e,t){this.eventHandlers[e]||(this.eventHandlers[e]=[]),this.eventHandlers[e].push(t),this.emit("event.handler.added",{eventName:e})}},{key:"emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.eventHandlers[e];if(r&&0!==r.length){var n=this.activeInstance||this._getDefaultInstance(),o=a(a({},t),{},{pixelId:t.pixelId||(null==n?void 0:n.pixelId)||null,instanceKey:t.instanceKey||(null==n?void 0:n.instanceKey)||null});r.forEach((function(e){try{e(o)}catch(e){console.error("Error executing event handler:",e)}}))}}},{key:"_executeQueueItem",value:function(e){if(Array.isArray(e)&&!(e.length<2)){var n=(s=2,function(e){if(Array.isArray(e))return e}(a=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(a,s)||r(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1];"function"==typeof this[o]?this[o].apply(this,t(i||[])):"setPartnerId"===o&&null!=i&&i.length?this.partnerId=i[0]:Object.prototype.hasOwnProperty.call(this,o)&&(this[o]=null==i?void 0:i[0])}var a,s}},{key:"processQueue",value:function(){try{for(;this._queue.length>0;){var e=this._queue.shift();this._executeQueueItem(e)}this.q&&delete this.q}catch(e){console.error(e)}}}]);var e,n,o,i,s,l}();if(e.__vector_manager){var y,m=e.__vector_manager;return Array.isArray(i)&&i.length&&(y=m._queue).push.apply(y,t(i)),e.Vector=e.vector=m,void m.processQueue()}var w=new h(i,s);e.__vector_manager=w,e.Vector=e.vector=w,w.processQueue(),e.vectorPixelId&&e.vector.load(e.vectorPixelId)}(window)}catch(e){console.error("Error loading Vector:",e)}})()})();